From 8bf928abd5f967af3fb4923aadf24f75e7ae64cc Mon Sep 17 00:00:00 2001 From: Marte Fossum <myf@usit.uio.no> Date: Fri, 8 Apr 2022 13:27:55 +0200 Subject: [PATCH] Made Norway default country code Issue: GREG-238 --- frontend/src/routes/guest/register/steps/register.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/routes/guest/register/steps/register.tsx b/frontend/src/routes/guest/register/steps/register.tsx index fda66825..6688df1a 100644 --- a/frontend/src/routes/guest/register/steps/register.tsx +++ b/frontend/src/routes/guest/register/steps/register.tsx @@ -63,7 +63,7 @@ const GuestRegisterStep = forwardRef( // components directly to the form-field using useForm const [countryCode, setCountryCode] = useState< CountryCallingCode | undefined - >("NO") + >('NO') const [passportNationality, setPassportNationality] = useState< string | undefined >(undefined) @@ -506,7 +506,7 @@ const GuestRegisterStep = forwardRef( displayEmpty onChange={handleCountryCodeChange} label={t('input.countryCallingCode')} - value={countryCode ? countryCode.toString(): "NO"} + value={countryCode ? countryCode.toString() : 'NO'} renderValue={(selected: any) => { if (!selected || selected.length === 0) { return t('input.countryCallingCode') @@ -521,7 +521,6 @@ const GuestRegisterStep = forwardRef( 'data-testid': 'phone-country-code-select-inner', }} > - {sortedPhoneCountries.map((country) => ( <MenuItem key={country[0]} value={country[0]}> {country[1]} ({country[2]}) -- GitLab