mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-26 21:01:24 +02:00
Uppercase currency before looking for matching symbol #365
This commit is contained in:
parent
774b0c104b
commit
6f48ee98e5
@ -166,8 +166,7 @@ func fetchMarketsDataFromYahoo(marketRequests []marketRequest) (marketList, erro
|
||||
|
||||
points := svgPolylineCoordsFromYValues(100, 50, maybeCopySliceWithoutZeroValues(prices))
|
||||
|
||||
currency, exists := currencyToSymbol[response.Chart.Result[0].Meta.Currency]
|
||||
|
||||
currency, exists := currencyToSymbol[strings.ToUpper(response.Chart.Result[0].Meta.Currency)]
|
||||
if !exists {
|
||||
currency = response.Chart.Result[0].Meta.Currency
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user