#Can I set a parameter to null if there is no selection?

4 messages · Page 1 of 1 (latest)

gentle tapir
#

arent you trying to read stateCode or something from state after being redirected to /create-account/signup-with-email?

sweet sandal
#

it should pass the value of state after clicking on sign up and then going to create-account/signup-with-email

gentle tapir
#

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

sweet sandal
#

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