Skip to content

Commit

Permalink
fix total (#599)
Browse files Browse the repository at this point in the history
* fix total

* fix prettier
  • Loading branch information
Johannes7k75 authored Aug 9, 2024
1 parent 57c5a23 commit 7dcdd6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/SkyblockUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,14 @@ function getCrimson(data) {
}

function getCompletions(data) {
const completions = {};
const completions = {
total: 0
};

for (const tier in data) {
if ('total' === tier) continue;
completions[`Floor_${tier}`] = data[tier];
completions.total += data[tier];
}

return completions;
Expand Down

0 comments on commit 7dcdd6f

Please sign in to comment.