We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sidebar.logo
undefined
1 parent fbea21d commit 7f0e33dCopy full SHA for 7f0e33d
src/core/brand/brand.ts
@@ -344,9 +344,14 @@ export function resolveLogo(
344
return logo;
345
};
346
if (!spec) {
347
+ const lightLogo = findLogo("light", order);
348
+ const darkLogo = findLogo("dark", order);
349
+ if (!lightLogo && !darkLogo) {
350
+ return undefined;
351
+ }
352
return {
- light: findLogo("light", order) || findLogo("dark", order),
- dark: findLogo("dark", order) || findLogo("light", order),
353
+ light: lightLogo || darkLogo,
354
+ dark: darkLogo || lightLogo,
355
356
}
357
if (typeof spec === "string") {
0 commit comments