From 7467a05fc4fd9581c3083e3955e37b253ef7b937 Mon Sep 17 00:00:00 2001 From: lemmyMwaura Date: Thu, 1 Aug 2024 14:42:15 +0300 Subject: [PATCH] fix(lint): fix triple equal strict check --- .../components/CreateSecretForm/CreateSecretForm.tsx | 2 +- .../components/CreateSecretForm/CreateSecretForm.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/SecretMainPage/components/CreateSecretForm/CreateSecretForm.tsx b/frontend/src/views/SecretMainPage/components/CreateSecretForm/CreateSecretForm.tsx index fc625ed67..d040bb859 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 cfb2baecd..8c760bb6a 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);