diff --git a/src/components/General/CurrencyDropdown.tsx b/src/components/General/CurrencyDropdown.tsx index 55e3b986..b4ac290e 100644 --- a/src/components/General/CurrencyDropdown.tsx +++ b/src/components/General/CurrencyDropdown.tsx @@ -16,9 +16,9 @@ const CurrencyDropdown = ({ depositAmount }: CurrencyDropdownProps) => { const [supportedCurrencies, setSupportedCurrencies] = useState([]) const [currentCurrencyAmount, setCurrentCurrencyAmount] = useState(0) const currency = useSelector((state: RootState) => state.currency) - const totalPrice = price * CURRENCIES[currency as keyof typeof CURRENCIES] const dispatch = useDispatch() + const totalPrice = depositAmount * currentCurrencyAmount useEffect(() => { fetchCurrencyPrice() }, [currency])