diff --git a/services/web/frontend/js/features/ide-react/components/modals/generic-confirm-modal.tsx b/services/web/frontend/js/features/ide-react/components/modals/generic-confirm-modal.tsx index de35bee52f..fd27985ba6 100644 --- a/services/web/frontend/js/features/ide-react/components/modals/generic-confirm-modal.tsx +++ b/services/web/frontend/js/features/ide-react/components/modals/generic-confirm-modal.tsx @@ -25,10 +25,10 @@ function GenericConfirmModal({ message, confirmLabel, primaryVariant = 'primary', + onConfirm, ...modalProps }: GenericConfirmModalProps) { const { t } = useTranslation() - const handleConfirmClick = modalProps.onConfirm return ( @@ -42,7 +42,7 @@ function GenericConfirmModal({ modalProps.onHide()}> {t('cancel')} - + {confirmLabel || t('ok')}