From cd8578480feae1fdaf6146dceb0d91e8936d57e8 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 26 Jul 2022 11:52:43 +0200 Subject: [PATCH] :bug: Fix unexpected exception on i18n autodetect code --- frontend/src/app/util/i18n.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/util/i18n.cljs b/frontend/src/app/util/i18n.cljs index 13bf563b2..758d99125 100644 --- a/frontend/src/app/util/i18n.cljs +++ b/frontend/src/app/util/i18n.cljs @@ -90,9 +90,9 @@ (swap! storage assoc ::locale lname) (reset! locale lname)) - (let [locale (autodetect)] + (let [lname (autodetect)] (swap! storage dissoc ::locale) - (reset! locale locale)))) + (reset! locale lname)))) (defn reset-locale "Set the current locale to the browser detected one if it is