From 449dea7493a48939e0b4ca9992a0dc29eee17676 Mon Sep 17 00:00:00 2001 From: Justin Do Date: Thu, 21 Dec 2023 23:02:11 +0700 Subject: [PATCH] fix user can send from zero balace account --- ui/page/send/page.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ui/page/send/page.go b/ui/page/send/page.go index 96f0d970f..36229e0aa 100644 --- a/ui/page/send/page.go +++ b/ui/page/send/page.go @@ -254,11 +254,6 @@ func (pg *Page) OnNavigatedTo() { if pg.selectedWallet.GetAssetType() == libUtil.BTCWalletAsset && pg.isFeerateAPIApproved() { // This API call may take sometime to return. Call this before and cache // results. - // go func() { - // load.GetAPIFeeRate(pg.selectedWallet) - // pg.feeRateSelector.UpdatedFeeRate(pg.selectedWallet) - // pg.ParentWindow().Reload() - // }() go load.GetAPIFeeRate(pg.selectedWallet) go pg.feeRateSelector.UpdatedFeeRate(pg.selectedWallet) } @@ -448,10 +443,6 @@ func (pg *Page) HandleUserInteractions() { pg.nextButton.SetEnabled(pg.recipient.isValidated()) - if pg.sourceAccountSelector.Changed() { - pg.recipient.validateAmount() - } - if pg.infoButton.Button.Clicked() { textWithUnit := values.String(values.StrSend) + " " + string(pg.selectedWallet.GetAssetType()) info := modal.NewCustomModal(pg.Load).