From 8700ca9e3e63c8c07256784f4d3873db8a87c3f3 Mon Sep 17 00:00:00 2001 From: Katie Date: Fri, 27 May 2022 14:38:45 -0400 Subject: [PATCH] CSR-622 Don't load if referralNumber is empty --- src/helpers/heritage-integration/order-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/heritage-integration/order-helper.js b/src/helpers/heritage-integration/order-helper.js index d64ab865d..d32d2b570 100644 --- a/src/helpers/heritage-integration/order-helper.js +++ b/src/helpers/heritage-integration/order-helper.js @@ -12,7 +12,7 @@ export async function loadOrderIfPresent() { const funnelCookie = getFunnelCookie(); // Do nothing if there is no cookie or no correlation id. - if (funnelCookie == null || funnelCookie.ReferralCorrelationId == null) { + if (funnelCookie == null || funnelCookie.ReferralCorrelationId == null || !funnelCookie.ReferralNumber) { return null; }