CSR-622 Don't load if referralNumber is empty

This commit is contained in:
Katie 2022-05-27 14:38:45 -04:00
parent 85af0596bd
commit 8700ca9e3e

View file

@ -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;
}