diff --git a/packages/app/features/home/screen.tsx b/packages/app/features/home/screen.tsx index 51a88694a..0ea180dd7 100644 --- a/packages/app/features/home/screen.tsx +++ b/packages/app/features/home/screen.tsx @@ -19,16 +19,17 @@ import { OpenConnectModalWrapper } from 'app/utils/OpenConnectModalWrapper' import { useThemeSetting } from '@tamagui/next-theme' import { X } from '@tamagui/lucide-icons' import { TokenDetails } from './TokenDetails' +import { useCoinFromTokenParam } from 'app/utils/useCoinFromTokenParam' export function HomeScreen() { const media = useMedia() const toast = useToastController() - const [tokenParam, setTokenParam] = useToken() + const [, setTokenParam] = useToken() const { address } = useAccount() const { resolvedTheme } = useThemeSetting() const separatorColor = resolvedTheme?.startsWith('dark') ? '#343434' : '#E6E6E6' - const selectedCoin = coins.find((c) => c.token === tokenParam) + const selectedCoin = useCoinFromTokenParam() return (