use default theme

This commit is contained in:
Roman Cervantes 2019-10-16 12:56:29 -07:00
parent 6393d33cad
commit e38dfa1b59

View file

@ -79,6 +79,7 @@ export default {
const hasPlatform = this.platform && this.platform.code;
const hasTheme = hasPlatform
&& this.settings
&& this.settings.theme
&& this.settings.theme[this.platform.code];
const isGameBoard = this.$route.name === 'game-board';
@ -86,7 +87,7 @@ export default {
const hasPlatformTheme = hasPlatform && hasTheme;
return isGameBoard && hasPlatformTheme
? `theme-${this.settings.theme[this.platform.code]}`
? this.settings.theme[this.platform.code]
: 'theme-default';
},
},