Skip to content

Commit

Permalink
fix(material/theme): unselected theme picker
Browse files Browse the repository at this point in the history
Fix unselected theme picker when localStorage is empty.

Fixes #204
  • Loading branch information
kian23kpt authored and Splaktar committed Jun 15, 2021
1 parent 057ed37 commit a0b5546
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ export class ThemePicker implements OnInit, OnDestroy {
const themeName = this._themeStorage.getStoredThemeName();
if (themeName) {
this.selectTheme(themeName);
} else {
this.themes.find(themes => {
if (themes.isDefault === true) {
this.selectTheme(themes.name);
}
});
}
}

Expand Down

0 comments on commit a0b5546

Please sign in to comment.