Skip to content

Commit

Permalink
fix: fix label won't be shown when no theme preference
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxi-ream authored Oct 8, 2023
1 parent 7dacf0b commit 9501b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/(main)/ThemeSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function ThemeSwitcher() {
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0.95 }}
>
{themes.find((t) => t.value === theme)?.label}
{themes.find((t) => t.value === theme)?.label || "系统模式“}
</motion.div>
</Tooltip.Content>
</Tooltip.Portal>
Expand Down

0 comments on commit 9501b37

Please sign in to comment.