diff --git a/wormhole-connect/src/hooks/useUSDamountGetter.ts b/wormhole-connect/src/hooks/useUSDamountGetter.ts index ffe5eb5c3..43126fb75 100644 --- a/wormhole-connect/src/hooks/useUSDamountGetter.ts +++ b/wormhole-connect/src/hooks/useUSDamountGetter.ts @@ -19,7 +19,7 @@ export const useUSDamountGetter = (): ((args: { const tokenPrice = Number(getTokenPrice(prices, config.tokens[token])); const USDAmount = tokenPrice * numericAmount; - return isNaN(USDAmount) ? undefined : USDAmount; + return isNaN(USDAmount) ? undefined : parseFloat(USDAmount.toFixed(2)); }, [data], );