fix errors due to null values

This commit is contained in:
Nuwan 2024-02-04 23:39:54 +05:30
parent aeb2e50692
commit c16be14207
1 changed files with 3 additions and 3 deletions

View File

@ -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);