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);