Switch to symbols instead of currency names
This commit is contained in:
parent
040561c462
commit
ba6ae6db71
@ -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")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user