Skip to content

Commit

Permalink
fix user can send from zero balace account
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeBoy committed Dec 21, 2023
1 parent 5cd1772 commit 449dea7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ui/page/send/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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).
Expand Down

0 comments on commit 449dea7

Please sign in to comment.