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.
1 parent 290a729 commit 5f158f7Copy full SHA for 5f158f7
src/core/sass/brand.ts
@@ -356,13 +356,9 @@ const brandTypographyLayer = (
356
resolvedFontOptions = { family: resolvedFontOptions };
357
}
358
const result: HTMLFontInformation = {};
359
- // This is an ugly hack:
360
- // resolvedFontOptions doesn't always have 'family', but at this
361
- // point in the code we know resolvedFontOptions is an object
362
- // that we can attempt to extract the family from.
363
- const family =
364
- (resolvedFontOptions as Record<string, string | undefined>).family;
365
- result.family = family;
+ if ("family" in resolvedFontOptions) {
+ result.family = resolvedFontOptions.family;
+ }
366
for (
367
const entry of [
368
"line-height",
0 commit comments