From 7c7bdba8fbf7e0c83ac7f50a2c9789e3985ca114 Mon Sep 17 00:00:00 2001 From: Amery2010 Date: Mon, 3 Feb 2025 10:31:51 +0800 Subject: [PATCH] fix: Hide the password box without access to the password --- components/Setting.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Setting.tsx b/components/Setting.tsx index 52cb84e..934992c 100644 --- a/components/Setting.tsx +++ b/components/Setting.tsx @@ -208,10 +208,10 @@ function Setting({ open, hiddenTalkPanel, onClose }: SettingProps) { }, [open, uploadModelList]) useLayoutEffect(() => { - if (buildMode === 'export') { + if (buildMode === 'export' || !isProtected) { setHiddenPasswordInput(true) } - }, [buildMode]) + }, [buildMode, isProtected]) return (