Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
fix total (Hypixel-API-Reborn/Hypixel-API-Reborn/#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Sep 3, 2024
1 parent eeb5a4a commit 7839942
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/SkyblockUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,12 +437,12 @@ export function getSlayer(data: Record<string, any>): SkyblockMemberSlayer | nul
}

function getCompletions(data: Record<string, any>): Record<string, number> {
const completions: Record<string, number> = {};

const completions: Record<string, number> = { 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 7839942

Please sign in to comment.