I want to setState for a field "payment" which is blank on API call. In the registration form this data is not set but after login on dashboard this data will be reflecting and user can select the check boxes.
I am getting error:
TypeError: Cannot read property 'payment' of undefined
How to do this?