diff --git a/src/components/v2v3/V2V3Project/ProjectDashboard/components/Cart/hooks/useRewardEligibilityCallout.ts b/src/components/v2v3/V2V3Project/ProjectDashboard/components/Cart/hooks/useRewardEligibilityCallout.ts index 6fb3b9e1fb..07b3c0d114 100644 --- a/src/components/v2v3/V2V3Project/ProjectDashboard/components/Cart/hooks/useRewardEligibilityCallout.ts +++ b/src/components/v2v3/V2V3Project/ProjectDashboard/components/Cart/hooks/useRewardEligibilityCallout.ts @@ -20,7 +20,7 @@ export const useRewardEligibilityCallout = () => { const weiPayAmount = useWeiConverter({ currency: payAmount?.currency, - amount: payAmount?.amount.toString(), + amount: payAmount?.amount?.toString(), }) const eligibleRewards = useMemo(() => { diff --git a/src/components/v2v3/V2V3Project/ProjectDashboard/components/PayProjectCard/components/TokensPerEth.tsx b/src/components/v2v3/V2V3Project/ProjectDashboard/components/PayProjectCard/components/TokensPerEth.tsx index ec79338fa9..6c6708e48c 100644 --- a/src/components/v2v3/V2V3Project/ProjectDashboard/components/PayProjectCard/components/TokensPerEth.tsx +++ b/src/components/v2v3/V2V3Project/ProjectDashboard/components/PayProjectCard/components/TokensPerEth.tsx @@ -8,14 +8,14 @@ export const TokensPerEth = ({ }: { currencyAmount: | { - amount: number + amount: number // NOTE this is actually a `string | undefined` from what I can tell. Too scared to change it atm. currency: V2V3CurrencyOption } | undefined }) => { const { currencyText, receivedTickets, receivedTokenSymbolText } = useTokensPerEth({ - amount: parseFloat(currencyAmount?.amount.toString() || '1'), + amount: parseFloat(currencyAmount?.amount?.toString() || '1'), currency: currencyAmount?.currency || V2V3_CURRENCY_ETH, })