diff --git a/components/user/Tabs/SettingsContent.tsx b/components/user/Tabs/SettingsContent.tsx index 020146dc..de95027c 100644 --- a/components/user/Tabs/SettingsContent.tsx +++ b/components/user/Tabs/SettingsContent.tsx @@ -44,6 +44,7 @@ export default function SettingsContent({ authedUser }: Props) { }) const $country = useField({ ...FIELDS.country, + useDefault: false, defaultValue: authedUser.country_code, }) const [$error, $setError] = useState(UNSET) diff --git a/hooks/useForm.ts b/hooks/useForm.ts index ade6dfb1..f13dbb5e 100644 --- a/hooks/useForm.ts +++ b/hooks/useForm.ts @@ -29,6 +29,7 @@ export interface ProvidedField { options?: NameValue[] defaultErrorText?: string whitespace?: WHITESPACE + useDefault?: boolean } export interface Field extends ProvidedField { value: string