Uppercase currency before looking for matching symbol #365

This commit is contained in:
Svilen Markov 2025-02-22 13:57:00 +00:00
parent 774b0c104b
commit 6f48ee98e5

View File

@ -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
}