mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
fix: double confirmation sur les popup
This commit is contained in:
@ -47,7 +47,6 @@ const Popup = ({
|
||||
onClick={() => {
|
||||
if (setIsOpen) setIsOpen(false);
|
||||
else if (onCancel) onCancel();
|
||||
if (onCancel) onCancel();
|
||||
}}
|
||||
>
|
||||
Annuler
|
||||
@ -58,7 +57,6 @@ const Popup = ({
|
||||
onClick={() => {
|
||||
if (setIsOpen) setIsOpen(false);
|
||||
else if (onConfirm) onConfirm();
|
||||
if (onConfirm) onConfirm();
|
||||
}}
|
||||
>
|
||||
{uniqueConfirmButton ? 'Fermer' : 'Confirmer'}
|
||||
|
||||
Reference in New Issue
Block a user