Switch to symbols instead of currency names

This commit is contained in:
Florian Baumann 2023-04-24 11:01:11 +02:00
parent 040561c462
commit ba6ae6db71
7 changed files with 19 additions and 19 deletions

View File

@ -18,9 +18,9 @@ func getMongoDBURI() string {
func getCurrency() string { func getCurrency() string {
switch os.Getenv("SERRA_CURRENCY") { switch os.Getenv("SERRA_CURRENCY") {
case "EUR": case "EUR":
return "EUR" return ""
case "USD": case "USD":
return "USD" return "$"
} }
// default // default
LogMessage("Warning: You did not configure SERRA_CURRENCY. Assuming \"USD\"", "yellow") LogMessage("Warning: You did not configure SERRA_CURRENCY. Assuming \"USD\"", "yellow")