diff --git a/packages/web-app/app/_lib/queries.tsx b/packages/web-app/app/_lib/queries.tsx index ccb0a104..96c27c06 100644 --- a/packages/web-app/app/_lib/queries.tsx +++ b/packages/web-app/app/_lib/queries.tsx @@ -302,7 +302,7 @@ export const useUserTotalInvestedUsdcCtznd = (address: `0x${string}`) => { }, }); const { data: tokensInvested } = useReadCtzndSaleTokenToPaymentToken({ - args: [parseEther(formatUnits(ctzndTokensSold!, 6)) || 0n], + args: [parseEther(formatUnits(ctzndTokensSold || 0n, 6)) || 0n], }); const usdcValue = @@ -315,7 +315,7 @@ export const useCtzndMinContributionUsdc = () => { const { data: min } = useReadCtzndSaleMinContribution(); const { data: minUsdc } = useReadCtzndSaleTokenToPaymentToken({ - args: [parseEther(formatUnits(min!, 6)) || 0n], + args: [parseEther(formatUnits(min || 0n, 6)) || 0n], }); const usdcValue = min && minUsdc ? formatUnits(minUsdc, 6) : '0';