Skip to content

Commit 38cfa97

Browse files
authored
Merge pull request #378 from UMUTBAYGUT/patch-1-useThemeName
useThemeName support string
2 parents 26ee0f6 + dad93ef commit 38cfa97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/use/useTheme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function useTheme() {
1616
export function useThemeName() {
1717
const themeName = inject<ComputedRef<ThemeName>>('themeName');
1818

19-
if (!themeName || !themeName.value) {
19+
if (!themeName) {
2020
throw new Error(
2121
'No themeName was provided.'
2222
);

0 commit comments

Comments
 (0)