Skip to content

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

remove duplicate notification in case of error

adilsonb095604880a5
diff --git a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
index 262d34b8b9..06acccbb4e 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx
@@ -3157,28 +3157,14 @@ const OverviewPageContent = () => {
handlePopUpOpen("deleteSecretRotation", secretRotation)
}
onCheckActiveCredentials={async (secretRotation) => {
- try {
- await checkSecretRotationCredentials({
- rotationId: secretRotation.id,
- type: secretRotation.type
- });
- createNotification({
- type: "success",
- text: "Active credentials are still valid"
- });
- } catch (err) {
- let errorText = "Failed to check active credentials";
- if (err instanceof AxiosError) {
- const message = (
- err.response?.data as { message?: string } | undefined
- )?.message;
- if (message) errorText = message;
- }
- createNotification({
- type: "error",
- text: errorText
- });
- }
+ await checkSecretRotationCredentials({
+ rotationId: secretRotation.id,
+ type: secretRotation.type
+ });
+ createNotification({
+ type: "success",
+ text: "Active credentials are still valid"
+ });
}}
/>
))}