From f522b35a29e7e92ea68279ed279936171760014f Mon Sep 17 00:00:00 2001 From: CarlNation <32103961+CarlNation@users.noreply.github.com> Date: Tue, 12 Sep 2023 10:52:53 -0400 Subject: [PATCH 1/2] CSR-1630 if multiple vehicles found, still save the first and last name to vuex --- src/store/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index cc8dc0b39..5050ca831 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1679,8 +1679,9 @@ export const actions = { if (!isSelectedGlassAvailableForVehicle) { context.dispatch(storeActions.RESET_DAMAGE_STATE_AND_DEPENDENCIES); } + } - //Save new values + if (registrationInfo){ context.commit(storeMutations.UPDATE_VEHICLE, vehicleInfo); context.commit(storeMutations.UPDATE_REGISTRATION, registrationInfo); } From 94f038059d208d932014e5f0c20e05cac9070db2 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Tue, 12 Sep 2023 10:55:30 -0400 Subject: [PATCH 2/2] CSR-1630 prettier --- src/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 5050ca831..976ef0d2e 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1681,7 +1681,7 @@ export const actions = { } } - if (registrationInfo){ + if (registrationInfo) { context.commit(storeMutations.UPDATE_VEHICLE, vehicleInfo); context.commit(storeMutations.UPDATE_REGISTRATION, registrationInfo); }