From 24b79326435ed6de17850abdd7d561ed54ef88da Mon Sep 17 00:00:00 2001 From: Lucemans Date: Fri, 3 Nov 2023 13:31:00 +0000 Subject: [PATCH] Update POAP Modal --- components/POAPModal/POAPModal.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/POAPModal/POAPModal.tsx b/components/POAPModal/POAPModal.tsx index ff84a88..f7cb103 100644 --- a/components/POAPModal/POAPModal.tsx +++ b/components/POAPModal/POAPModal.tsx @@ -7,7 +7,12 @@ import { IYKRefResponse as IYKReferenceResponse } from '../../hooks/useIYKRef'; import { POAPMetadata } from '../../hooks/usePOAPData'; import { Creeper } from './Creeper'; -const SHOW_POAP_ANYWAYS = false; +const OVERRIDE_SHOW_POAP_ANYWAYS = false; + +// eslint-disable-next-line no-undef +const query = new URLSearchParams(window?.document?.location?.search); +const SHOW_POAP_ANYWAYS = + OVERRIDE_SHOW_POAP_ANYWAYS || query.get('show_poap') === 'true'; // 10 days const HIDE_AFTER_TIME = 1000 * 60 * 60 * 24 * 100;