If value truthy then set
This commit is contained in:
parent
6173799884
commit
f1df4cc69a
1 changed files with 3 additions and 1 deletions
|
|
@ -566,7 +566,9 @@ export const useMainStore = defineStore({
|
|||
const insured = responsePolicy.insureds?.[0];
|
||||
|
||||
// populate parent account number
|
||||
order.parentAccountNumber = responsePolicy.accountNumber;
|
||||
if (responsePolicy.accountNumber) {
|
||||
order.parentAccountNumber = responsePolicy.accountNumber;
|
||||
}
|
||||
|
||||
// populate policy holder details from policy lookup
|
||||
order.customer.address.streetAddress = insured?.address;
|
||||
|
|
|
|||
Loading…
Reference in a new issue