diff --git a/www/js/metrics/metricsHelper.ts b/www/js/metrics/metricsHelper.ts index 9dbc23c82..ca3846806 100644 --- a/www/js/metrics/metricsHelper.ts +++ b/www/js/metrics/metricsHelper.ts @@ -180,7 +180,7 @@ export function isCustomLabels(modeMap) { logDebug(`Checking metric keys ${distanceKeys}; sensed ${isSensedKeys}; custom ${isCustomKeys}`); const isAllCustomForMetric = isAllCustom(isSensedKeys, isCustomKeys); metricSummaryChecksSensed.push(!isAllCustomForMetric); - metricSummaryChecksCustom.push(!!isAllCustomForMetric); + metricSummaryChecksCustom.push(Boolean(isAllCustomForMetric)); logDebug(`overall custom/not results for each metric is ${JSON.stringify(metricSummaryChecksCustom)}`); return isAllCustom(metricSummaryChecksSensed, metricSummaryChecksCustom); diff --git a/www/js/onboarding/onboardingHelper.ts b/www/js/onboarding/onboardingHelper.ts index 72020382b..89e05d9e7 100644 --- a/www/js/onboarding/onboardingHelper.ts +++ b/www/js/onboarding/onboardingHelper.ts @@ -78,7 +78,7 @@ async function readConsented() { } export async function readIntroDone() { - return storageGet(INTRO_DONE_KEY).then((read_val) => !!read_val) as Promise; + return storageGet(INTRO_DONE_KEY).then((read_val) => Boolean(read_val)) as Promise; } export async function markIntroDone() {