Skip to content

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

fix(lint): fix triple equal strict check

lemmyMwaura7467a05fc4fd
diff --git a/frontend/src/views/SecretMainPage/components/CreateSecretForm/CreateSecretForm.tsx b/frontend/src/views/SecretMainPage/components/CreateSecretForm/CreateSecretForm.tsx
index fc625ed67e..d040bb859e 100644
--- a/frontend/src/views/SecretMainPage/components/CreateSecretForm/CreateSecretForm.tsx
+++ b/frontend/src/views/SecretMainPage/components/CreateSecretForm/CreateSecretForm.tsx
@@ -80,7 +80,7 @@ export const CreateSecretForm = ({
const pastedContent = e.clipboardData.getData('text');
const splitIndex = pastedContent.indexOf("=");
- if (splitIndex == -1) return
+ if (splitIndex === -1) return
const key = pastedContent.slice(0, splitIndex)
const value = pastedContent.slice(splitIndex + 1);
diff --git a/frontend/src/views/SecretOverviewPage/components/CreateSecretForm/CreateSecretForm.tsx b/frontend/src/views/SecretOverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
index cfb2baecdf..8c760bb6a0 100644
--- a/frontend/src/views/SecretOverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
+++ b/frontend/src/views/SecretOverviewPage/components/CreateSecretForm/CreateSecretForm.tsx
@@ -141,7 +141,7 @@ export const CreateSecretForm = ({
const pastedContent = e.clipboardData.getData('text');
const splitIndex = pastedContent.indexOf("=");
- if (splitIndex == -1) return
+ if (splitIndex === -1) return
const key = pastedContent.slice(0, splitIndex)
const value = pastedContent.slice(splitIndex + 1);