From d12c4b7580d4f7832b8be0adf704b129f5e98d08 Mon Sep 17 00:00:00 2001 From: Rhythm Bhiwani Date: Sat, 2 Mar 2024 09:21:46 +0530 Subject: [PATCH] Stop ability to rename a secret to empty name from frontend --- .../SecretMainPage/components/SecretListView/SecretListView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/SecretMainPage/components/SecretListView/SecretListView.tsx b/frontend/src/views/SecretMainPage/components/SecretListView/SecretListView.tsx index 780e49448..db57cb144 100644 --- a/frontend/src/views/SecretMainPage/components/SecretListView/SecretListView.tsx +++ b/frontend/src/views/SecretMainPage/components/SecretListView/SecretListView.tsx @@ -206,7 +206,7 @@ export const SecretListView = ({ reminderRepeatDays, reminderNote } = modSecret; - const hasKeyChanged = oldKey !== key; + const hasKeyChanged = oldKey !== key && key; const tagIds = tags?.map(({ id }) => id); const oldTagIds = (orgSecret?.tags || []).map(({ id }) => id);