diff --git a/src/constants/store-mutations.js b/src/constants/store-mutations.js index 834c4b648..69d7c558c 100644 --- a/src/constants/store-mutations.js +++ b/src/constants/store-mutations.js @@ -34,7 +34,7 @@ const storeMutations = { // OTHER MUTATIONS UPDATE_PAGE_DATA: "updatePageData", - SET_LOAD_FUNNEL_SESSION_INFO: "updateStateWithOrderInformation" + UPDATE_STATE_WITH_ORDER_INFORMATION: "updateStateWithOrderInformation" }; diff --git a/src/store/index.js b/src/store/index.js index a7b3420a9..b13dbcd67 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -393,7 +393,7 @@ export const actions = { referralCorrelationId: referralCorrelationId }, }).then((response) => { - context.commit(storeMutations.SET_LOAD_FUNNEL_SESSION_INFO, response.data); + context.commit(storeMutations.UPDATE_STATE_WITH_ORDER_INFORMATION, response.data); return response; }); } diff --git a/src/store/store.spec.js b/src/store/store.spec.js index 5c7e0c881..3e67bbf34 100644 --- a/src/store/store.spec.js +++ b/src/store/store.spec.js @@ -539,7 +539,7 @@ describe("Actions", () => { // Assert expect(response.data).toEqual({ referralNumber: 123 }); - expect(commit).toBeCalledWith(storeMutations.SET_LOAD_FUNNEL_SESSION_INFO, {"referralNumber": 123}); + expect(commit).toBeCalledWith(storeMutations.UPDATE_STATE_WITH_ORDER_INFORMATION, {"referralNumber": 123}); }); it("setReferralInformation, should call commit three times", () => {