fix(nsfw): close will trigger as if clicking no
This commit is contained in:
parent
7331866479
commit
44d7f57f0a
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user