diff --git a/frontend/js/src/lastfm/LastFMImporter.tsx b/frontend/js/src/lastfm/LastFMImporter.tsx index a81006aeed..c33dcb1da0 100644 --- a/frontend/js/src/lastfm/LastFMImporter.tsx +++ b/frontend/js/src/lastfm/LastFMImporter.tsx @@ -562,6 +562,12 @@ export default class LastFmImporter extends React.Component< this.rlOrigin = new Date().getTime() / 1000; } + progressBarPercentage() { + if (this.totalPages >= this.numCompleted) + return Math.ceil((this.numCompleted / this.totalPages) * 100); + return 50; + } + async submitPage(payload: Array) { const delay = this.getRateLimitDelay(); // Halt execution for some time @@ -577,12 +583,6 @@ export default class LastFmImporter extends React.Component< this.updateRateLimitParameters(response); } - progressBarPercentage() { - if (this.totalPages >= this.numCompleted) - return Math.ceil((this.numCompleted / this.totalPages) * 100); - return 50; - } - render() { const { show, canClose, lastfmUsername, msg, service } = this.state; return (