Skip to content

The open alternative to Salesforce, designed for AI.

Fixed confirmation modal not closing after regenerating API key (#4192)

Sohal Kumar Singha7aebcd01d8d
diff --git a/packages/twenty-front/src/modules/ui/layout/modal/components/ConfirmationModal.tsx b/packages/twenty-front/src/modules/ui/layout/modal/components/ConfirmationModal.tsx
index 9c7cb41259b..e71955d62ba 100644
--- a/packages/twenty-front/src/modules/ui/layout/modal/components/ConfirmationModal.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/modal/components/ConfirmationModal.tsx
@@ -122,7 +122,10 @@ export const ConfirmationModal = ({
fullWidth
/>
<StyledCenteredButton
- onClick={onConfirmClick}
+ onClick={async () => {
+ await onConfirmClick();
+ setIsOpen(false);
+ }}
variant="secondary"
accent="danger"
title={deleteButtonText}