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.
|
// Do nothing if there is no cookie or session to use for loading.
|
||||||
if (
|
if (
|
||||||
funnelCookie == null ||
|
funnelCookie == null ||
|
||||||
funnelCookie.SavedSessionId == null ||
|
|
||||||
funnelCookie.ReferralCorrelationId == null ||
|
funnelCookie.ReferralCorrelationId == null ||
|
||||||
!funnelCookie.ReferralNumber
|
!funnelCookie.ReferralNumber
|
||||||
) {
|
) {
|
||||||
|
|
@ -128,7 +127,7 @@ async function loadSession(
|
||||||
const response = await baseMixin.methods.dispatchStoreActionWithLogging(
|
const response = await baseMixin.methods.dispatchStoreActionWithLogging(
|
||||||
storeActions.LOAD_SESSION,
|
storeActions.LOAD_SESSION,
|
||||||
{
|
{
|
||||||
savedSessionId: savedSessionId?.toString(),
|
savedSessionId: savedSessionId != null ? savedSessionId.toString() : null,
|
||||||
referralNumber,
|
referralNumber,
|
||||||
referralDate,
|
referralDate,
|
||||||
referralCorrelationId,
|
referralCorrelationId,
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,14 @@ export async function consumeReferralQuerystrings() {
|
||||||
// If no referral number in querystring, check if heritage funnel updated last.
|
// 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
|
// 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.
|
// 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;
|
const didHeritageFunnelUpdateLast = getFunnelCookie()?.DidHeritageFunnelUpdateLast;
|
||||||
if (didHeritageFunnelUpdateLast && !referralNumber) {
|
if (didHeritageFunnelUpdateLast) {
|
||||||
referralNumber = getFunnelCookie().ReferralNumber;
|
referralNumber = referralNumber ?? getFunnelCookie().ReferralNumber;
|
||||||
parentAccount = getFunnelCookie().ReferralParentAccountNumber;
|
parentAccount = parentAccount ?? getFunnelCookie().ReferralParentAccountNumber;
|
||||||
correlationId = getFunnelCookie().ReferralCorrelationId;
|
correlationId = correlationId ?? getFunnelCookie().ReferralCorrelationId;
|
||||||
referralDate = getFunnelCookie().ReferralDate;
|
referralDate = getFunnelCookie().ReferralDate;
|
||||||
savedSessionId = getFunnelCookie().SavedSessionId;
|
savedSessionId = getFunnelCookie().SavedSessionId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue