From c813cff84fc2ddc607bd1fd8ea816bd4d7673108 Mon Sep 17 00:00:00 2001 From: afh Date: Sun, 18 Apr 2021 20:43:15 +0200 Subject: [PATCH] Format alert target price without exponent --- cointop/price_alerts.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cointop/price_alerts.go b/cointop/price_alerts.go index 17b7b5c..bdcacca 100644 --- a/cointop/price_alerts.go +++ b/cointop/price_alerts.go @@ -251,7 +251,8 @@ func (ct *Cointop) UpdatePriceAlertsUpdateMenu(isNew bool, coin *Coin) error { if ok { coin.Name = entry.CoinName currentPrice = strconv.FormatFloat(coin.Price, 'f', -1, 64) - value = fmt.Sprintf("%s %v", entry.Operator, entry.TargetPrice) + targetPrice := strconv.FormatFloat(entry.TargetPrice, 'f', -1, 64) + value = fmt.Sprintf("%s %v", entry.Operator, targetPrice) ct.State.priceAlertEditID = entry.ID isEdit = true }