From 459de70583655b9b2cf75d631418d988beceee45 Mon Sep 17 00:00:00 2001 From: Alex Humphries Date: Wed, 15 Jul 2026 11:30:05 -0400 Subject: [PATCH] INSR-523: Fix typo, fix potential bug with deductible on registerClaim --- src/store/index.js | 2 +- src/store/store.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index b973ca25..675618a2 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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 diff --git a/src/store/store.spec.js b/src/store/store.spec.js index 6c4ca152..a87a4917 100644 --- a/src/store/store.spec.js +++ b/src/store/store.spec.js @@ -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(({