Skip to content

Commit 4e869f3

Browse files
alberto-art3chadamsaghy
authored andcommitted
WEB-670: Working Capital loan account creation fix override values
1 parent 21b57a4 commit 4e869f3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/app/loans/create-loans-account/create-loans-account.component.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,13 @@ export class CreateLoansAccountComponent extends LoanProductBaseComponent implem
290290
) {
291291
delete payload['discount'];
292292
}
293+
if (
294+
!Object.hasOwn(this.productDetails.allowAttributeOverrides, 'breach') ||
295+
this.productDetails.allowAttributeOverrides.breach === false
296+
) {
297+
delete payload['breachId'];
298+
delete payload['nearBreachId'];
299+
}
293300
}
294301

295302
// No Empty values to be sent

0 commit comments

Comments
 (0)