From 24bec5c8f4e9b2a09c1dc62423b05d2aadb33d9c Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Sun, 1 Nov 2020 21:17:03 +0100 Subject: [PATCH] Fix polyfill check --- src/common/translations/localize.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/translations/localize.ts b/src/common/translations/localize.ts index fa6adc1b52b0..6ebba251b8b1 100644 --- a/src/common/translations/localize.ts +++ b/src/common/translations/localize.ts @@ -15,10 +15,10 @@ export interface FormatsType { let polyfillLoaded = !shouldPolyfill(); const polyfillProm = polyfillLoaded - ? import("@formatjs/intl-pluralrules/polyfill-locales").then(() => { + ? undefined + : import("@formatjs/intl-pluralrules/polyfill-locales").then(() => { polyfillLoaded = true; - }) - : undefined; + }); /** * Adapted from Polymer app-localize-behavior.