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 => { setUpTheme = (): Base16Theme => {
let theme; let theme;
if (typeof this.props.theme === 'string') { if (typeof this.props.theme === 'string') {
if ( if (typeof themes[this.props.theme] !== 'undefined') {
typeof themes[this.props.theme as keyof typeof themes] !== 'undefined' theme = themes[this.props.theme];
) {
theme = themes[this.props.theme as keyof typeof themes];
} else { } else {
theme = themes.nicinabox; theme = themes.nicinabox;
} }