aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalte Brandy2019-10-29 03:52:28 +0100
committerMalte Brandy2019-10-29 03:52:28 +0100
commitb47d3b9fabcdf990d1c683b095c95f6f769c22e7 (patch)
tree6762e5e37145da68245af1362b73d2c9d3d3d77a
parent3a884c7eb3b294c5aaf2191408e1ac2befbceaaf (diff)
downloadjali-b47d3b9fabcdf990d1c683b095c95f6f769c22e7.tar.gz
jali-b47d3b9fabcdf990d1c683b095c95f6f769c22e7.zip
Make currency selection more robust
-rw-r--r--jali/dialog.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/jali/dialog.py b/jali/dialog.py
index 7a990e6..d995ccf 100644
--- a/jali/dialog.py
+++ b/jali/dialog.py
@@ -15,6 +15,8 @@ import jali.data
15def choose_currency(from_bank, from_config): 15def choose_currency(from_bank, from_config):
16 if from_bank is None: 16 if from_bank is None:
17 return from_config 17 return from_config
18 if from_bank is "":
19 return from_config
18 if from_bank in ["€", "EUR"] and from_config in ["€", "EUR"]: 20 if from_bank in ["€", "EUR"] and from_config in ["€", "EUR"]:
19 return from_config 21 return from_config
20 else: 22 else: