diff --git a/src/ui/views/TokenDetail/index.tsx b/src/ui/views/TokenDetail/index.tsx index 97730957..0b05a0fb 100644 --- a/src/ui/views/TokenDetail/index.tsx +++ b/src/ui/views/TokenDetail/index.tsx @@ -133,10 +133,10 @@ const TokenDetail = () => { if (price) { setPrice(price); } - const evmPrice = await usewallet.openapi.getPricesByEvmaddress( - tokenResult!.evmAddress!, - data - ); + // TokenInfo does have evmAddress, sometimes, check first + const addressToCheck = + 'evmAddress' in tokenResult! ? (tokenResult as any).evmAddress : tokenResult!.address; + const evmPrice = await usewallet.openapi.getPricesByEvmaddress(addressToCheck, data); if (evmPrice) { setPrice(evmPrice); }