Skip to content
Snippets Groups Projects
Commit 528cf17a authored by Tore.Brede's avatar Tore.Brede
Browse files

Merge branch 'GREG-225_gender_not_sent_to_server' into 'master'

GREG-225: Gender not sent to server in all cases

See merge request !300
parents aafb952b 5fe00b02
No related branches found
No related tags found
1 merge request!300GREG-225: Gender not sent to server in all cases
Pipeline #121337 passed
......@@ -239,6 +239,13 @@ const GuestRegisterStep = forwardRef(
if (registerData?.mobilePhoneCountry) {
setCountryCode(registerData.mobilePhoneCountry)
}
if (gender !== '') {
// Need to set gender in the state and also in the form. This is
// to handle the case where the gender is suggested by the
// national ID number
setValue('gender', gender)
}
}, [registerData])
register('mobilePhoneCountry')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment