Skip to content

Commit

Permalink
Resolve requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
beansgum committed Sep 14, 2021
1 parent 01b743e commit 256efd2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion ui/page/tickets/purchase_modal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 0 additions & 2 deletions ui/page/tickets/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -517,7 +516,6 @@ func ticketAgeTimeFormat(secs int) string {
}

return fmt.Sprintf("%ds", secs)

}

func maturityTimeFormat(maturityTimeMinutes int) string {
Expand Down
1 change: 0 additions & 1 deletion ui/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 256efd2

Please sign in to comment.