2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-10 13:10:26 +00:00

Merge branch 'alert-price-entry' of https://github.com/afh/cointop into afh-alert-price-entry

This commit is contained in:
Miguel Mota 2021-04-20 21:58:04 -07:00
commit 4c67b63422
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9

View File

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