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;