Skip to content

Commit

Permalink
Merge pull request #93 from Lilypad-Tech/jeffrey/refactor-parse-lilyb…
Browse files Browse the repository at this point in the history
…it-points

refactor: Parsed lilybit to hundreds and millions
  • Loading branch information
DyepLucban authored Aug 30, 2024
2 parents bb00ed7 + f5a3e30 commit aa22abc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions apps/info-dashboard/src/app/leaderboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,10 @@ export default function Leaderboard() {
leaderboardData
? leaderboardData.reduce(
(total, node) =>
+node.Points +
total,
0
+node.Points +total, 0
)
: 0
)}
).toLocaleString()}
</span>
</div>
{/* Todo add api week total Lilybit_rewards earned */}
Expand Down
2 changes: 1 addition & 1 deletion apps/info-dashboard/src/lib/fetchers/leaderboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function toTableData({
} as const);
return result;
})(),
"Reward Points": Math.round(+Points * 100) / 100,
"Reward Points": (Math.round(+Points * 100) / 100).toLocaleString(),

Status: (() => {
const online = nodesData.find(
Expand Down

0 comments on commit aa22abc

Please sign in to comment.