[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant-backoffice] branch master updated: fix lang changer
From: |
gnunet |
Subject: |
[taler-merchant-backoffice] branch master updated: fix lang changer |
Date: |
Thu, 06 Jan 2022 15:31:39 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository merchant-backoffice.
The following commit(s) were added to refs/heads/master by this push:
new b6dd8d0 fix lang changer
b6dd8d0 is described below
commit b6dd8d031f33f2b4aec1a18d0e017cf37db510ce
Author: ms <ms@taler.net>
AuthorDate: Thu Jan 6 15:31:19 2022 +0100
fix lang changer
---
packages/bank/src/pages/home/index.tsx | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/packages/bank/src/pages/home/index.tsx
b/packages/bank/src/pages/home/index.tsx
index 5f34db9..f79e2b8 100644
--- a/packages/bank/src/pages/home/index.tsx
+++ b/packages/bank/src/pages/home/index.tsx
@@ -69,13 +69,15 @@ interface AccountStateType {
* is _no_ check on whether the new language exists.
*/
function changeLang(
- lang: string,
+ newLang: string,
+ langState: LangStateType,
langStateSetter: StateUpdater<LangStateType>
) {
-
+ if (newLang == langState.lang) return;
+
let newLangState = {
- lang: lang,
- handler: new jedLib.Jed(strings[lang])
+ lang: newLang,
+ handler: new jedLib.Jed(strings[newLang])
}
langStateSetter(newLangState);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant-backoffice] branch master updated: fix lang changer,
gnunet <=