From ef1a8be191f4885b0480f6046327e7eb76e71286 Mon Sep 17 00:00:00 2001 From: kudlajz Date: Fri, 17 May 2024 00:43:59 +0200 Subject: [PATCH] Rename parameter to mask --- components/PreviewPageMask/PreviewPageMask.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/PreviewPageMask/PreviewPageMask.tsx b/components/PreviewPageMask/PreviewPageMask.tsx index 6e2aab8e..a93bb1f3 100644 --- a/components/PreviewPageMask/PreviewPageMask.tsx +++ b/components/PreviewPageMask/PreviewPageMask.tsx @@ -4,9 +4,9 @@ import styles from './PreviewPageMask.module.scss'; export function PreviewPageMask() { const searchParams = useSearchParams(); - const preview = JSON.parse(searchParams.get('preview') || 'false'); + const mask = JSON.parse(searchParams.get('mask') || 'false'); - if (!preview) { + if (!mask) { return null; }