fix(nsfw): close will trigger as if clicking no

This commit is contained in:
en 2025-01-30 19:08:54 +01:00
parent 7331866479
commit 44d7f57f0a

View File

@ -24,7 +24,10 @@ export const NsfwAlertPopup = ({
<AlertPopup <AlertPopup
header='Confirm' header='Confirm'
label='Are you above 18 years of age?' label='Are you above 18 years of age?'
handleClose={handleClose} handleClose={() => {
handleConfirm(false)
handleClose()
}}
handleConfirm={(confirm: boolean) => { handleConfirm={(confirm: boolean) => {
setConfirmNsfw(confirm) setConfirmNsfw(confirm)
handleConfirm(confirm) handleConfirm(confirm)