This commit is contained in:
Nathan Bierema 2020-09-10 10:03:09 -04:00
parent 3d3ed0cf6a
commit e54eb30f94

View File

@ -96,10 +96,8 @@ class SliderMonitor<S, A extends Action<unknown>> extends (PureComponent ||
setUpTheme = (): Base16Theme => {
let theme;
if (typeof this.props.theme === 'string') {
if (
typeof themes[this.props.theme as keyof typeof themes] !== 'undefined'
) {
theme = themes[this.props.theme as keyof typeof themes];
if (typeof themes[this.props.theme] !== 'undefined') {
theme = themes[this.props.theme];
} else {
theme = themes.nicinabox;
}