From 5a97dc611b323316d058ec14e8ab83a1e2cefea7 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Wed, 5 Jul 2023 15:29:49 -0400 Subject: [PATCH] CSR-1438 If a customer navigates backwards and clears their email, we send an empty string to save-session which will fail validation. Pass nulls instead --- 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 39a9d3266..035c4bcc0 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1945,7 +1945,7 @@ export const actions = { }, saveEmail(context, email) { - context.commit(storeMutations.UPDATE_CUSTOMER_EMAIL_ADDRESS, email); + context.commit(storeMutations.UPDATE_CUSTOMER_EMAIL_ADDRESS, email === "" ? null : email); }, saveVin(context, { isSelectedGlassAvailableForVehicle, vehicleInfo }) {