From 6f48ee98e5905923024c405afd0ed5af60554478 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Sat, 22 Feb 2025 13:57:00 +0000 Subject: [PATCH] Uppercase currency before looking for matching symbol #365 --- internal/glance/widget-markets.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }