diff --git a/src/components/ChooseCurrency.tsx b/src/components/ChooseCurrency.tsx index 3134282e..024e31ad 100644 --- a/src/components/ChooseCurrency.tsx +++ b/src/components/ChooseCurrency.tsx @@ -23,7 +23,7 @@ const COMBINED_OPTIONS: Currency[] = [USD_OPTION, BTC_OPTION, ...FIAT_OPTIONS]; export function ChooseCurrency() { const i18n = useI18n(); const [error, setError] = createSignal(); - const [_state, actions] = useMegaStore(); + const [state, actions] = useMegaStore(); const [loading, setLoading] = createSignal(false); const navigate = useNavigate(); @@ -37,7 +37,7 @@ export function ChooseCurrency() { const [_chooseCurrencyForm, { Form, Field }] = createForm({ initialValues: { - fiatCurrency: "" + fiatCurrency: state.fiat.value }, validate: (values) => { const errors: Record = {}; @@ -82,7 +82,12 @@ export function ChooseCurrency() { > {({ value, label }) => ( - + )}