Fixes bug in the themes service if no data are available.

parent 6e7a1399
Pipeline #17980 passed with stages
in 10 minutes and 6 seconds
......@@ -32,7 +32,7 @@ export class ThemesService {
) {
if (isPlatformBrowser(this.platformId)) {
this.storageService.read(DB_TABLE.CONFIG, STORAGE_KEY.DEFAULT_THEME).subscribe(val => {
if (val) {
if (!val) {
this.storageService.create(DB_TABLE.CONFIG, STORAGE_KEY.DEFAULT_THEME, DefaultSettings.defaultQuizSettings.theme).subscribe();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment