Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSilva committed May 21, 2024
1 parent e131ab5 commit ecebe58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web-app/app/_lib/queries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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';
Expand Down

0 comments on commit ecebe58

Please sign in to comment.