Skip to content

Commit

Permalink
fix(example): conditional query
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Jun 23, 2024
1 parent 0dfb960 commit 8d43f75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ const Query = () => {
<article>
<h4>Total value staked</h4>
<p>
{useNativeTokenNumberWithPlanck(totalStaked ?? 0n).toLocaleString()}
{useNativeTokenNumberWithPlanck(
typeof totalStaked === "bigint" ? totalStaked : 0n,
).toLocaleString()}
</p>
</article>
<article>
Expand Down

0 comments on commit 8d43f75

Please sign in to comment.