Skip to content

Commit

Permalink
fix: raise error when cancel appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
longxiaofei committed Apr 15, 2024
1 parent 8176ec0 commit 1ba6980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const MainApp = observer((props: {children: React.ReactNode, darkMode: "dark" |
<ToggleGroup
type="single"
value={selectedDarkMode}
onValueChange={(value) => {setSelectedDarkMode(value as IDarkMode)}}
onValueChange={(value) => {value && setSelectedDarkMode(value as IDarkMode)}}
>
<ToggleGroupItem value="dark">
<MoonIcon className="h-4 w-4" />
Expand Down

0 comments on commit 1ba6980

Please # to comment.