fix errors due to null values
This commit is contained in:
parent
aeb2e50692
commit
c16be14207
|
|
@ -79,9 +79,9 @@ function JKEditProfile() {
|
|||
.then(data => {
|
||||
setValue('firstName', data.first_name);
|
||||
setValue('lastName', data.last_name);
|
||||
setValue('country', data.country);
|
||||
setValue('state', data.state);
|
||||
setValue('city', data.city);
|
||||
setValue('country', data.country ? data.country : '');
|
||||
setValue('state', data.state ? data.state : '');
|
||||
setValue('city', data.city? data.city : '');
|
||||
setValue('biography', data.biography);
|
||||
setValue('subscribeEmail', data.subscribe_email);
|
||||
setValue('virtualBand', data.virtual_band);
|
||||
|
|
|
|||
Loading…
Reference in New Issue