diff --git a/wormhole-connect/src/views/v2/TxHistory/Item/index.tsx b/wormhole-connect/src/views/v2/TxHistory/Item/index.tsx index 75dae3833..6260620bb 100644 --- a/wormhole-connect/src/views/v2/TxHistory/Item/index.tsx +++ b/wormhole-connect/src/views/v2/TxHistory/Item/index.tsx @@ -47,7 +47,6 @@ const TxHistoryItem = (props: Props) => { txHash, amount, amountUsd, - recipient, fromChain, fromToken, toChain, @@ -64,8 +63,7 @@ const TxHistoryItem = (props: Props) => { ), [], ); - const { getTokenPrice, isFetchingTokenPrices, lastTokenPriceUpdate } = - useTokens(); + const { getTokenPrice, lastTokenPriceUpdate } = useTokens(); // Render details for the sent amount const sentAmount = useMemo(() => { @@ -133,15 +131,17 @@ const TxHistoryItem = (props: Props) => { ); + // ESLint complains that lastTokenPriceUpdate is unused/unnecessary here, + // but we want to recompute the price after we update conversion rates. + // eslint-disable-next-line react-hooks/exhaustive-deps }, [ - isFetchingTokenPrices, lastTokenPriceUpdate, - receiveAmount, + toChain, toToken, - recipient, + receiveAmount, + getTokenPrice, separator, theme.palette.text.secondary, - toChain, ]); // Vertical line that connects sender and receiver token icons diff --git a/wormhole-connect/src/views/v2/TxHistory/Widget/Item.tsx b/wormhole-connect/src/views/v2/TxHistory/Widget/Item.tsx index 4b1d33ff8..4b5e2cbcb 100644 --- a/wormhole-connect/src/views/v2/TxHistory/Widget/Item.tsx +++ b/wormhole-connect/src/views/v2/TxHistory/Widget/Item.tsx @@ -289,7 +289,7 @@ const WidgetItem = (props: Props) => { - {`${sdkAmount.display(sdkAmount.truncate(amount, 4))} ${ + {`${sdkAmount.display(sdkAmount.truncate(amount, 6))} ${ token.symbol }`}