Skip to content

Commit 8a59483

Browse files
committed
fix: paidETH price
1 parent f0151c1 commit 8a59483

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web/src/pages/Courts/CourtDetails/Stats.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ const stats: IStat[] = [
8585
{
8686
title: "ETH paid to Jurors",
8787
coinId: 1,
88-
getText: (data) => commify(formatEther(data?.paidETH)),
88+
getText: (data) => commify(formatEther(BigInt(data?.paidETH))),
8989
getSubtext: (data, coinPrice) =>
90-
(parseInt(formatUnits(data?.paidETH, 18)) * (coinPrice ?? 0)).toFixed(2).toString() + "$",
90+
(Number(formatUnits(data?.paidETH, 18)) * (coinPrice ?? 0)).toFixed(2).toString() + "$",
9191
color: "blue",
9292
icon: EthereumIcon,
9393
},

web/src/pages/Home/CourtOverview/Stats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const stats: IStat[] = [
5050
coinId: 1,
5151
getText: (counters) => commify(formatEther(getLastOrZero(counters, "paidETH"))),
5252
getSubtext: (counters, coinPrice) =>
53-
(parseInt(formatUnits(getLastOrZero(counters, "paidETH"), 18)) * (coinPrice ?? 0)).toFixed(2).toString() + "$",
53+
(Number(formatUnits(getLastOrZero(counters, "paidETH"), 18)) * (coinPrice ?? 0)).toFixed(2).toString() + "$",
5454
color: "blue",
5555
icon: EthereumIcon,
5656
},

0 commit comments

Comments
 (0)