Skip to content

Commit

Permalink
FIX: No error message when loading BTC balance timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
qtxie committed Jul 1, 2019
1 parent cdcc6d8 commit dd91e17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wallet.red
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,12 @@ wallet: context [
]

list-addresses: func [
/prev /next /local addr-balances addrs addr entry balances balance n idx
/prev /next /local addr-balances addrs addr entry balances balance n idx err?
][
update-ui no

either keys/key [
err?: no
locked?: no
addrs: clear []
addr-balances: clear []
Expand Down Expand Up @@ -209,6 +210,7 @@ wallet: context [
balances: fetch-balance n
][
info-msg/text: {Fetch balance: Timeout. Please try "Reload" again}
err?: yes
break
]
poke addr-balances idx rejoin [addr " " balances]
Expand All @@ -223,7 +225,7 @@ wallet: context [

update-ui no
either coin-type = 'BTC [
info-msg/text: ""
unless err? [info-msg/text: ""]
][
info-msg/text: "Please wait while loading balances..."
either error? try [
Expand Down

0 comments on commit dd91e17

Please sign in to comment.