diff --git a/src/utils/SettingMapper.ts b/src/utils/SettingMapper.ts index 4ac3663..c2aa49f 100644 --- a/src/utils/SettingMapper.ts +++ b/src/utils/SettingMapper.ts @@ -46,7 +46,11 @@ export default class SettingMapper { public static is(key: SettingKey | string, args?: { [key: string]: any }): boolean { const value = this.getValueRef(key, args).value; - return !value && value === 'true'; + return !!value && value === 'true'; + } + + public static not(key: SettingKey | string, args?: { [key: string]: any }): boolean { + return !this.is(key, args); } public static getValue(key: SettingKey | string, args?: { [key: string]: any }): string | undefined {