From 44d7f57f0a04e4619fb9c388f5d94ec3af1dce26 Mon Sep 17 00:00:00 2001 From: en Date: Thu, 30 Jan 2025 19:08:54 +0100 Subject: [PATCH] fix(nsfw): close will trigger as if clicking no --- src/components/NsfwAlertPopup.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/NsfwAlertPopup.tsx b/src/components/NsfwAlertPopup.tsx index 1685a97..a9b94d8 100644 --- a/src/components/NsfwAlertPopup.tsx +++ b/src/components/NsfwAlertPopup.tsx @@ -24,7 +24,10 @@ export const NsfwAlertPopup = ({ { + handleConfirm(false) + handleClose() + }} handleConfirm={(confirm: boolean) => { setConfirmNsfw(confirm) handleConfirm(confirm)