Skip to content

Commit

Permalink
includes error/crash
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Nov 25, 2024
1 parent 8d9810e commit 486db3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function EntryPageNsfwRevealing({ entry, children }: PropsWithChildren<Pr
const { showIfNsfw } = useContext(EntryPageContext);

const showNsfwWarning =
(entry.json_metadata.tags?.includes("nsfw") ?? false) && !showIfNsfw && !globalNsfw;
(entry.json_metadata?.tags?.includes("nsfw") ?? false) && !showIfNsfw && !globalNsfw;

return showNsfwWarning ? <EntryPageNsfwWarning /> : children;
}

0 comments on commit 486db3b

Please sign in to comment.