@ -132,7 +132,7 @@ func (ct *Cointop) UpdateCoin(coin *Coin) error {
Slug: v.Slug,
}
ct.State.allCoinsSlugMap.Store(k, coin)
ct.State.allCoinsSlugMap.Store(coin.Name, coin)
return nil
@ -235,6 +235,10 @@ func (ct *Cointop) SetCurrencyConverstion(convert string) error {
func (ct *Cointop) SetCurrencyConverstionFn(convert string) func() error {
log.Debug("SetCurrencyConverstionFn()")
return func() error {
if !ct.State.convertMenuVisible {
ct.HideConvertMenu()
if err := ct.SetCurrencyConverstion(convert); err != nil {