Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
amCap1712 committed Mar 12, 2023
1 parent 89ed51c commit 3f8eebc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/js/src/lastfm/LastFMImporter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Listen>) {
const delay = this.getRateLimitDelay();
// Halt execution for some time
Expand All @@ -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 (
Expand Down

0 comments on commit 3f8eebc

Please sign in to comment.