#Can I set a parameter to null if there is no selection?
4 messages · Page 1 of 1 (latest)
it should pass the value of state after clicking on sign up and then going to create-account/signup-with-email
I see, but since you are setting state to null and getting "'cannot read properties of null" I would say you are trying to read any property from this variable
sorry the error is, from state: selectedCountrycode === 'US' ? selectedUsState.stateCode : null and I get a different problem. When I select any other country besides US state and then click on sign up, I get redirected to the signup page but don't have this problem when I select US and a State