Skip to content

Commit

Permalink
fix: weth unwrap swap review undefined (#1719)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSinclair authored Oct 2, 2024
1 parent 6a4d0b6 commit 7574dbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entries/popup/hooks/swap/useSwapReviewDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ export const useSwapReviewDetails = ({

const exchangeRate = useMemo(() => {
const convertedSellAmount = convertRawAmountToDecimalFormat(
quote.sellAmountDisplay.toString(),
quote.sellAmountDisplay?.toString(),
assetToSell.decimals,
);

const convertedBuyAmount = convertRawAmountToDecimalFormat(
quote.buyAmountDisplay.toString(),
quote.buyAmountDisplay?.toString(),
assetToBuy.decimals,
);

Expand Down

0 comments on commit 7574dbf

Please sign in to comment.