From 677cec1ec2f7a3582327f4747d088c6bccbd2560 Mon Sep 17 00:00:00 2001 From: N3WT DE COMPET Date: Wed, 28 May 2025 14:27:38 +0200 Subject: [PATCH] fix: double confirmation sur les popup --- Front-End/src/components/Popup.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/Front-End/src/components/Popup.js b/Front-End/src/components/Popup.js index c854f8f..460df30 100644 --- a/Front-End/src/components/Popup.js +++ b/Front-End/src/components/Popup.js @@ -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'}