diff --git a/components/FormAmount/Inputs/InputToken.tsx b/components/FormAmount/Inputs/InputToken.tsx index ef15601..a2e195b 100644 --- a/components/FormAmount/Inputs/InputToken.tsx +++ b/components/FormAmount/Inputs/InputToken.tsx @@ -1,7 +1,10 @@ +'use client' + import { Dispatch, SetStateAction } from 'react' import styles from './InputToken.module.css' import { CaretDownIcon } from '@radix-ui/react-icons' import { TokenSymbol } from '@/types' +import { useSWRConfig } from 'swr' export function InputToken({ token, @@ -12,13 +15,18 @@ export function InputToken({ isFiat?: boolean setToken?: Dispatch> }) { + const { mutate } = useSWRConfig() + return (