fix: always show profile switcher in sidebar (#2)

ProfileSwitcher was hidden when only one profile existed, making it
impossible to access "Manage Profiles" to create additional profiles.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Le-King-Fu 2026-02-16 23:30:42 +00:00
parent 732302cb44
commit 404478ff65

View file

@ -25,8 +25,6 @@ export default function ProfileSwitcher() {
return () => document.removeEventListener("mousedown", handleClick);
}, [open]);
if (profiles.length <= 1) return null;
const handleSelect = (profile: Profile) => {
setOpen(false);
if (profile.id === activeProfile?.id) return;