diff --git a/ui/page/tickets/purchase_modal.go b/ui/page/tickets/purchase_modal.go index 19f69db2a..297579daf 100644 --- a/ui/page/tickets/purchase_modal.go +++ b/ui/page/tickets/purchase_modal.go @@ -65,7 +65,7 @@ func (tp *ticketPurchaseModal) OnResume() { tp.vspSelector = newVSPSelector(tp.Load).title("Select a vsp") tp.ticketPrice = dcrutil.Amount(tp.WL.TicketPrice()) - if tp.vspIsFetched && tp.WL.GetRememberVSP() != "" { + if tp.vspIsFetched && components.StringNotEmpty(tp.WL.GetRememberVSP()) { tp.vspSelector.selectVSP(tp.WL.GetRememberVSP()) tp.rememberVSP.CheckBox.Value = true } diff --git a/ui/page/tickets/utils.go b/ui/page/tickets/utils.go index c1a224cc2..2f92426e4 100644 --- a/ui/page/tickets/utils.go +++ b/ui/page/tickets/utils.go @@ -100,7 +100,6 @@ func ticketsToTransactionItems(l *load.Load, txs []dcrlibwallet.Transaction, new ticketAgeDuration := time.Since(time.Unix(tx.Timestamp, 0)).Seconds() ticketAge = ticketAgeTimeFormat(int(ticketAgeDuration)) - } showTime := showProgress && txStatus.TicketStatus != dcrlibwallet.TicketStatusLive @@ -517,7 +516,6 @@ func ticketAgeTimeFormat(secs int) string { } return fmt.Sprintf("%ds", secs) - } func maturityTimeFormat(maturityTimeMinutes int) string { diff --git a/ui/state.go b/ui/state.go index 6c2803ff8..d6c187882 100644 --- a/ui/state.go +++ b/ui/state.go @@ -51,7 +51,6 @@ func (win *Window) updateStates(update interface{}) { win.walletUnspentOutputs = e case *wallet.VSPInfo: win.states.loading = false - // win.vspInfo.List = append(win.vspInfo.List, *e) return case *wallet.VSP: win.vspInfo = e