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

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

parent 0a5ec39b
No related branches found
No related tags found
1 merge request!300GREG-225: Gender not sent to server in all cases
......@@ -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