Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fix: Cancel button working on Create API in Personal Settings

abdulhakkeempa98b5f713a588
diff --git a/frontend/src/views/Settings/PersonalSettingsPage/APIKeySection/AddAPIKeyModal.tsx b/frontend/src/views/Settings/PersonalSettingsPage/APIKeySection/AddAPIKeyModal.tsx
index e3b43f8ae9..ceaf852f3e 100644
--- a/frontend/src/views/Settings/PersonalSettingsPage/APIKeySection/AddAPIKeyModal.tsx
+++ b/frontend/src/views/Settings/PersonalSettingsPage/APIKeySection/AddAPIKeyModal.tsx
@@ -170,7 +170,11 @@ export const AddAPIKeyModal = ({
>
Add
</Button>
- <Button colorSchema="secondary" variant="plain">
+ <Button
+ colorSchema="secondary"
+ variant="plain"
+ onClick={() => handlePopUpToggle("addAPIKey", false)}
+ >
Cancel
</Button>
</div>