Skip to content

Commit abb8c05

Browse files
committed
fix type error
1 parent 2ef9d0a commit abb8c05

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package/src/lib/theme.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ export function resolveTheme(
5858
? `multi-${Object.values(themeInput)
5959
.map(
6060
(theme) =>
61-
(typeof theme === 'string' ? theme : theme?.name) ||
62-
'custom'
61+
(typeof theme === 'string'
62+
? theme
63+
: (theme as { name?: string })?.name) || 'custom'
6364
)
6465
.sort()
6566
.join('-')}`

0 commit comments

Comments
 (0)