diff --git a/cryptolive/widget.go b/cryptolive/widget.go index 0bd669d3..23203024 100644 --- a/cryptolive/widget.go +++ b/cryptolive/widget.go @@ -129,6 +129,7 @@ func (widget *Widget) updateCurrencies() { recover() }() for _, fromCurrency := range widget.list.items { + var ( client http.Client jsonResponse cResponse @@ -152,8 +153,9 @@ func (widget *Widget) updateCurrencies() { _ = json.NewDecoder(response.Body).Decode(&jsonResponse) setPrices(&jsonResponse, fromCurrency) - } + + display(widget) } func makeRequest(currency *fromCurrency) *http.Request {