Merge pull request #3074 from Safelite/feature/CASH-2264
CASH-2264 - Made agent scheduling work thru 2.0
This commit is contained in:
commit
e44acb4e61
2 changed files with 8 additions and 6 deletions
|
|
@ -20,7 +20,6 @@ export async function loadSessionIfPresent(isConceptInsurance, pageNameToLog) {
|
|||
// Do nothing if there is no cookie or session to use for loading.
|
||||
if (
|
||||
funnelCookie == null ||
|
||||
funnelCookie.SavedSessionId == null ||
|
||||
funnelCookie.ReferralCorrelationId == null ||
|
||||
!funnelCookie.ReferralNumber
|
||||
) {
|
||||
|
|
@ -128,7 +127,7 @@ async function loadSession(
|
|||
const response = await baseMixin.methods.dispatchStoreActionWithLogging(
|
||||
storeActions.LOAD_SESSION,
|
||||
{
|
||||
savedSessionId: savedSessionId?.toString(),
|
||||
savedSessionId: savedSessionId != null ? savedSessionId.toString() : null,
|
||||
referralNumber,
|
||||
referralDate,
|
||||
referralCorrelationId,
|
||||
|
|
|
|||
|
|
@ -15,11 +15,14 @@ export async function consumeReferralQuerystrings() {
|
|||
// If no referral number in querystring, check if heritage funnel updated last.
|
||||
// This would indicate a customer that went to heritage but did not return through the
|
||||
// normal route. ie: left the site in search of a discount and returned without querystrings.
|
||||
|
||||
//or if a referral number is in query string check if heritage funnel updated last
|
||||
// This would indicate a customer that returned through normal route like from sfa email
|
||||
const didHeritageFunnelUpdateLast = getFunnelCookie()?.DidHeritageFunnelUpdateLast;
|
||||
if (didHeritageFunnelUpdateLast && !referralNumber) {
|
||||
referralNumber = getFunnelCookie().ReferralNumber;
|
||||
parentAccount = getFunnelCookie().ReferralParentAccountNumber;
|
||||
correlationId = getFunnelCookie().ReferralCorrelationId;
|
||||
if (didHeritageFunnelUpdateLast) {
|
||||
referralNumber = referralNumber ?? getFunnelCookie().ReferralNumber;
|
||||
parentAccount = parentAccount ?? getFunnelCookie().ReferralParentAccountNumber;
|
||||
correlationId = correlationId ?? getFunnelCookie().ReferralCorrelationId;
|
||||
referralDate = getFunnelCookie().ReferralDate;
|
||||
savedSessionId = getFunnelCookie().SavedSessionId;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue