Skip to content

Commit ff7028d

Browse files
committed
fix: handle undefined token address in useBridging hook
1 parent f856a3b commit ff7028d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/hooks/bridge/useBridging.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const useBridging = () => {
9090
},
9191
});
9292
history.push(
93-
`${CROSS_CHAIN_SWAP_ROUTE}${PREPARE_SWAP_ROUTE}?token=${token.address.toLowerCase()}`,
93+
`${CROSS_CHAIN_SWAP_ROUTE}${PREPARE_SWAP_ROUTE}?token=${token.address?.toLowerCase()}`,
9494
);
9595
} else {
9696
const portfolioUrl = getPortfolioUrl(

0 commit comments

Comments
 (0)