diff --git a/apps/maestro/src/services/interchainToken/hooks.ts b/apps/maestro/src/services/interchainToken/hooks.ts index 0fb09086..0bae6522 100644 --- a/apps/maestro/src/services/interchainToken/hooks.ts +++ b/apps/maestro/src/services/interchainToken/hooks.ts @@ -6,7 +6,7 @@ import { trpc } from "~/lib/trpc"; export function useInterchainTokenDetailsQuery(input: { chainId?: number; - tokenAddress?: `0x${string}`; + tokenAddress?: `0x${string}` | null; }) { return trpc.interchainToken.getInterchainTokenDetails.useQuery( { diff --git a/apps/maestro/src/ui/pages/InterchainTokenDetailsPage/index.tsx b/apps/maestro/src/ui/pages/InterchainTokenDetailsPage/index.tsx index 9f20a4ea..08f203a5 100644 --- a/apps/maestro/src/ui/pages/InterchainTokenDetailsPage/index.tsx +++ b/apps/maestro/src/ui/pages/InterchainTokenDetailsPage/index.tsx @@ -31,8 +31,8 @@ const InterchainTokensPage: FC = () => { }); const { data: interchainTokenDetails } = useInterchainTokenDetailsQuery({ - chainId: routeChain?.id, - tokenAddress, + chainId: interchainToken?.chainId, + tokenAddress: interchainToken?.tokenAddress, }); const { data: tokenDetails } = useERC20TokenDetailsQuery({