🐛 Fix incorrect handling of user lang selection.

That causes double loading of the http resources
in some circumstances.
This commit is contained in:
Andrey Antukh 2021-04-13 09:46:36 +02:00
parent a92820e910
commit 464a686c04
3 changed files with 16 additions and 15 deletions

View file

@ -73,6 +73,7 @@
(swap! storage assoc ::locale lang)
(reset! locale lang))
(do
(swap! storage dissoc ::locale)
(reset! locale (autodetect)))))
(defn reset-locale