Skip to content

Commit a731d15

Browse files
chore: correctly clean themeVariables if called with setThemeVariables({})
1 parent d4601ce commit a731d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/controllers/ThemeController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const ThemeController = {
3838
},
3939

4040
setThemeVariables(themeVariables?: ThemeControllerState['themeVariables']) {
41-
if (!themeVariables) {
41+
if (Object.keys(themeVariables ?? {}).length === 0) {
4242
state.themeVariables = {};
4343

4444
return;

0 commit comments

Comments
 (0)