Skip to content

Commit

Permalink
Merge pull request #911 from prezly/feature/care-5040-preview-links-a…
Browse files Browse the repository at this point in the history
…re-not-working

[CARE-5040] Fix - Correctly handle preview query param
  • Loading branch information
kudlajz authored May 17, 2024
2 parents 522f1ba + 4dcd61c commit 66da352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/PreviewPageMask/PreviewPageMask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 66da352

Please sign in to comment.