Skip to content

Commit

Permalink
fix(logo) condition for microcloud is presence of user.microcloud (#995)
Browse files Browse the repository at this point in the history
## Done

- fix(logo) condition for microcloud is presence of user.microcloud, not
dependant on the actual value itself
  • Loading branch information
edlerd authored Nov 20, 2024
2 parents a4ea925 + d5bf45b commit 96a5b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Logo: FC = () => {
const { project, isLoading } = useProject();
const { data: settings } = useSettings();

const isMicroCloud = settings?.config?.["user.microcloud"] === "true";
const isMicroCloud = Boolean(settings?.config?.["user.microcloud"]);
const src = isMicroCloud
? "/ui/assets/img/microCloud-logo.svg"
: "/ui/assets/img/lxd-logo.svg";
Expand Down

0 comments on commit 96a5b11

Please sign in to comment.