From 8d43f75fd513fee348e8f48b6c224b593fe2e8fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ti=E1=BA=BFn=20Nguy=E1=BB=85n=20Kh=E1=BA=AFc?= Date: Sun, 23 Jun 2024 19:25:34 +1200 Subject: [PATCH] fix(example): conditional query --- apps/example/src/App.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/example/src/App.tsx b/apps/example/src/App.tsx index 94fec73b..8fead26a 100644 --- a/apps/example/src/App.tsx +++ b/apps/example/src/App.tsx @@ -144,7 +144,9 @@ const Query = () => {

Total value staked

- {useNativeTokenNumberWithPlanck(totalStaked ?? 0n).toLocaleString()} + {useNativeTokenNumberWithPlanck( + typeof totalStaked === "bigint" ? totalStaked : 0n, + ).toLocaleString()}