INSR-523: Fix typo, fix potential bug with deductible on registerClaim
This commit is contained in:
parent
acb1d53b04
commit
459de70583
2 changed files with 2 additions and 2 deletions
|
|
@ -685,7 +685,7 @@ export const useMainStore = defineStore({
|
|||
safelitePolicy: {
|
||||
policies: []
|
||||
},
|
||||
actualDeductible: this.currentDeductible.toString() ?? '',
|
||||
actualDeductible: this.currentDeductible?.toString() ?? '',
|
||||
currentRepairDeductible: this.order.currentDeductible.repair,
|
||||
currentReplaceDeductible: this.order.currentDeductible.replace,
|
||||
company: this.order.customer.companyCode
|
||||
|
|
|
|||
|
|
@ -2026,7 +2026,7 @@ describe('Store', () => {
|
|||
globalMethods.callHttpClient = jest.fn().mockReturnValue(Promise.resolve(response));
|
||||
|
||||
// Act
|
||||
awaitstore.getFinalDeductible();
|
||||
await store.getFinalDeductible();
|
||||
|
||||
// Assert
|
||||
expect(globalMethods.callHttpClient).toHaveBeenCalledWith(({
|
||||
|
|
|
|||
Loading…
Reference in a new issue