Skip to content

Commit

Permalink
fix: Hide the password box without access to the password
Browse files Browse the repository at this point in the history
  • Loading branch information
Amery2010 committed Feb 3, 2025
1 parent 1c9c702 commit 7c7bdba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Setting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<ResponsiveDialog
Expand Down

0 comments on commit 7c7bdba

Please sign in to comment.