Skip to content

Commit

Permalink
Fixed issue where 0 factoid addresses would cause entry credit balanc…
Browse files Browse the repository at this point in the history
…es to show 0
  • Loading branch information
Steven Masley committed Feb 10, 2017
1 parent c87ab03 commit 9b674ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wallet/guiWalletStruct.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ func (w *WalletStruct) AddBalancesToAddresses() {
w.FactoidTotal += bal
}
}
}

if w.EntryCreditAddresses.Length > 0 {
for i, ec := range w.EntryCreditAddresses.List {
bal, err := factom.GetECBalance(ec.Address)
if err != nil {
Expand All @@ -383,7 +385,9 @@ func (w *WalletStruct) AddBalancesToAddresses() {
w.ECTotal += bal
}
}
}

if w.ExternalAddresses.Length > 0 {
for i, a := range w.ExternalAddresses.List {
if a.Address[:2] == "FA" {
bal, err := factom.GetFactoidBalance(a.Address)
Expand Down

0 comments on commit 9b674ab

Please sign in to comment.