From 17b869e13c8f8490af2fa3916603f27390844acc Mon Sep 17 00:00:00 2001 From: prince-deriv <82309725+prince-deriv@users.noreply.github.com> Date: Fri, 2 Aug 2024 12:57:12 +0400 Subject: [PATCH] Revert "Prince/ Code fix (#747)" (#749) This reverts commit 51b725118f186a68c32def535421f1d4cc1d01b4. --- src/javascript/_common/localize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/javascript/_common/localize.js b/src/javascript/_common/localize.js index 504c6a91b3e..9c25e0cc1c8 100644 --- a/src/javascript/_common/localize.js +++ b/src/javascript/_common/localize.js @@ -18,7 +18,7 @@ const Localize = (() => { const lang = urlLang().toUpperCase(); - const strings = texts_json ?? {}; + const strings = typeof texts_json !== 'undefined' ? texts_json : {}; localized_texts = strings[lang];