Skip to content

Commit

Permalink
♻️ Refactoring (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
KATO-Hiro committed Jul 15, 2024
1 parent 2e380aa commit 00bb0bc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/lib/components/ThermometerProgressBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@
};
const getAllTaskCount = () => {
if (workBookTasks.length >= 1) {
return workBookTasks.length;
} else if (taskResults.length >= 1) {
return taskResults.length;
}
return 0;
return workBookTasks.length || taskResults.length || 0;
};
const baseAttributes =
Expand Down

0 comments on commit 00bb0bc

Please sign in to comment.