score:0

Accepted answer

As the error states in errors.residential.street the residential property of errors is undefined. So you need to set it as empty object first like

errors.residential = {}
errors.residential.street = "Required"

I would also improve the check

!values.residential || !values.residential.street

Related Query

More Query from same tag