From 8ffef7436538fe1933786af0ac4091cf4e61d475 Mon Sep 17 00:00:00 2001 From: CarlNation <32103961+CarlNation@users.noreply.github.com> Date: Mon, 20 Nov 2023 14:45:54 -0500 Subject: [PATCH 1/2] CSR-1809 Persist coverageStatus and coverageVerificationType since they are getting stepped on when bouncing between heritage and NextGen --- src/store/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 11690798f..d5ae5c4d2 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -95,6 +95,7 @@ const getDefaultState = () => { insuranceCoverage: { isVerified: null, coverageStatus: null, + coverageVerificationType: null, }, parentAccountNumber: 0, isPia: null, @@ -538,7 +539,9 @@ export const mutations = { state.order.payment.insuranceCoverage.isVerified = sessionInformation?.order.payment.insuranceCoverage.isVerified; state.order.payment.insuranceCoverage.coverageStatus = - sessionInformation?.insuranceInfo?.coverageStatus; + sessionInformation?.order.payment.insuranceCoverage.coverageStatus; + state.order.payment.insuranceCoverage.coverageVerificationType = + sessionInformation?.order.payment.insuranceCoverage.coverageVerificationType; state.order.customer.emailAddress = sessionInformation.order.customer.emailAddress; state.order.customer.firstName = sessionInformation.order.customer.firstName; @@ -1663,6 +1666,8 @@ export const actions = { payment: { InsuranceCoverage: { isVerified: order.payment.insuranceCoverage.isVerified ?? false, + coverageStatus: order.payment.insuranceCoverage.coverageStatus?.toString(), + coverageVerificationType: order.payment.insuranceCoverage.coverageVerificationType, }, isInsurance: order.payment.isInsurance, parentAccountNumber: order.payment.parentAccountNumber, From 13dd7b1ea8465d456db83f33ffc7437ae7b26f92 Mon Sep 17 00:00:00 2001 From: CarlNation Date: Mon, 20 Nov 2023 14:51:59 -0500 Subject: [PATCH 2/2] CSR-1809 prettier --- src/store/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index 8ffe55058..332b60cf6 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1667,8 +1667,10 @@ export const actions = { payment: { InsuranceCoverage: { isVerified: order.payment.insuranceCoverage.isVerified ?? false, - coverageStatus: order.payment.insuranceCoverage.coverageStatus?.toString(), - coverageVerificationType: order.payment.insuranceCoverage.coverageVerificationType, + coverageStatus: + order.payment.insuranceCoverage.coverageStatus?.toString(), + coverageVerificationType: + order.payment.insuranceCoverage.coverageVerificationType, }, isInsurance: order.payment.isInsurance, parentAccountNumber: order.payment.parentAccountNumber,