Skip to content

Commit

Permalink
feat: Fix error with changed formatAmount
Browse files Browse the repository at this point in the history
  • Loading branch information
msarcev committed Mar 7, 2024
1 parent 3bb6707 commit 37c933d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ export const InfluxChartsTab: React.FC = () => {
analyticStats,
] = useChartsState();

const lockedStorageDepositValue =
formatAmount(Number(analyticStats?.lockedStorageDeposit), tokenInfo).replace(COMMAS_REGEX, ",") ?? "-";
const lockedStorageDepositValue = analyticStats?.lockedStorageDeposit
? formatAmount(analyticStats.lockedStorageDeposit, tokenInfo).replace(COMMAS_REGEX, ",")
: "-";

const ids = idGenerator();

Expand Down

0 comments on commit 37c933d

Please sign in to comment.