Skip to content

Commit

Permalink
fix: toString bug (#4237)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomquirk authored Jan 28, 2024
1 parent 5261ad3 commit 0946163
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const useRewardEligibilityCallout = () => {

const weiPayAmount = useWeiConverter({
currency: payAmount?.currency,
amount: payAmount?.amount.toString(),
amount: payAmount?.amount?.toString(),
})

const eligibleRewards = useMemo(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})

Expand Down

2 comments on commit 0946163

@vercel
Copy link

@vercel vercel bot commented on 0946163 Jan 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 0946163 Jan 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

juice-interface – ./

juice-interface-peel.vercel.app
juice-interface-git-main-peel.vercel.app

Please sign in to comment.