Skip to content

Commit dc19d5a

Browse files
fix: normalize falsy logo spec to undefined in fillLogoPaths
Now that logo-light-dark-specifier-path-optional accepts `false`, return `undefined` explicitly for all falsy values rather than leaking `false` through to resolveLogo.
1 parent 07990f8 commit dc19d5a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core/brand/brand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,10 @@ export function fillLogoPaths(
505505
}
506506
return undefined;
507507
}
508-
if (!spec || typeof spec === "string") {
508+
if (!spec) {
509+
return undefined;
510+
}
511+
if (typeof spec === "string") {
509512
return spec;
510513
}
511514
if ("light" in spec || "dark" in spec) {

0 commit comments

Comments
 (0)