Skip to content

A self-hosted dashboard that puts all your feeds in one place

Uppercase currency before looking for matching symbol #365

Svilen Markov6f48ee98e590
diff --git a/internal/glance/widget-markets.go b/internal/glance/widget-markets.go
index 93dd9c6..a3bb325 100644
--- a/internal/glance/widget-markets.go
+++ b/internal/glance/widget-markets.go
@@ -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
}