Skip to content

Commit

Permalink
Fixed confirmation modal not closing after regenerating API key (#4192)
Browse files Browse the repository at this point in the history
Fixed modal not closing after regenerating API key
  • Loading branch information
sohalkumar authored Feb 26, 2024
1 parent 2148075 commit a7aebcd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ export const ConfirmationModal = ({
fullWidth
/>
<StyledCenteredButton
onClick={onConfirmClick}
onClick={async () => {
await onConfirmClick();
setIsOpen(false);
}}
variant="secondary"
accent="danger"
title={deleteButtonText}
Expand Down

0 comments on commit a7aebcd

Please sign in to comment.