INSR-523: Fix typo, fix potential bug with deductible on registerClaim

This commit is contained in:
Alex Humphries 2026-07-15 11:30:05 -04:00
parent acb1d53b04
commit 459de70583
2 changed files with 2 additions and 2 deletions

View file

@ -685,7 +685,7 @@ export const useMainStore = defineStore({
safelitePolicy: { safelitePolicy: {
policies: [] policies: []
}, },
actualDeductible: this.currentDeductible.toString() ?? '', actualDeductible: this.currentDeductible?.toString() ?? '',
currentRepairDeductible: this.order.currentDeductible.repair, currentRepairDeductible: this.order.currentDeductible.repair,
currentReplaceDeductible: this.order.currentDeductible.replace, currentReplaceDeductible: this.order.currentDeductible.replace,
company: this.order.customer.companyCode company: this.order.customer.companyCode

View file

@ -2026,7 +2026,7 @@ describe('Store', () => {
globalMethods.callHttpClient = jest.fn().mockReturnValue(Promise.resolve(response)); globalMethods.callHttpClient = jest.fn().mockReturnValue(Promise.resolve(response));
// Act // Act
awaitstore.getFinalDeductible(); await store.getFinalDeductible();
// Assert // Assert
expect(globalMethods.callHttpClient).toHaveBeenCalledWith(({ expect(globalMethods.callHttpClient).toHaveBeenCalledWith(({