fix bug
This commit is contained in:
@@ -112,12 +112,12 @@ const UpdateCustomer: FC = () => {
|
|||||||
birthDate: data.birthDate || '',
|
birthDate: data.birthDate || '',
|
||||||
nationalCode: data.nationalCode || '',
|
nationalCode: data.nationalCode || '',
|
||||||
password: data.password || '',
|
password: data.password || '',
|
||||||
economicCode: legal.economicCode || '',
|
economicCode: legal?.economicCode || '',
|
||||||
registrationName: legal.registrationName || '',
|
registrationName: legal?.registrationName || '',
|
||||||
registrationCode: legal.registrationCode || '',
|
registrationCode: legal?.registrationCode || '',
|
||||||
nationalIdentity: legal.nationalIdentity || '',
|
nationalIdentity: legal?.nationalIdentity || '',
|
||||||
postalCode: legal.address.postalCode || '',
|
postalCode: legal?.address?.postalCode || '',
|
||||||
address: legal.address?.fullAddress || '',
|
address: legal?.address?.fullAddress || '',
|
||||||
cityId: legal?.address?.city?.id,
|
cityId: legal?.address?.city?.id,
|
||||||
profilePic: data.profilePic || ''
|
profilePic: data.profilePic || ''
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user