From 76e597478bc777a9814614c6bc205dd2b9baffb1 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 28 Jul 2020 13:09:18 -0400 Subject: [PATCH] Fix bug where pm is undefined --- app/hub/Views/HomeView/HomeViewContainer.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/hub/Views/HomeView/HomeViewContainer.jsx b/app/hub/Views/HomeView/HomeViewContainer.jsx index b1d43fced..280f1c636 100644 --- a/app/hub/Views/HomeView/HomeViewContainer.jsx +++ b/app/hub/Views/HomeView/HomeViewContainer.jsx @@ -119,7 +119,7 @@ class HomeViewContainer extends Component { } = home; // Flag to display promo modal (used in A/B testing) - const { pm } = QueryString.parse(window.location.search); + const pm = QueryString.parse(window.location.search).pm || false; // Logic to display premium modal if it is the case that it is being shown once per hub refresh to non-premium users const showPromoModal = pm && pm === 'true' && !premium_promo_modal_shown && !isPremium;