Skip to content

Commit

Permalink
null check on wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
gloriousCode committed Oct 16, 2017
1 parent 2ccefb5 commit df805b8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions web/src/app/pages/wallet/wallet.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ export class WalletComponent implements OnInit {
}
}

public attachIcon(items:CoinTotal[]) :void {
for(var i = 0; i<items.length; i++) {
items[i].icon = this.coinIcon(items[i].coin);
}
public attachIcon(items: CoinTotal[]): void {
if (items) {
for (var i = 0; i < items.length; i++) {
items[i].icon = this.coinIcon(items[i].coin);
}
}
}

ngOnInit() {
Expand Down

0 comments on commit df805b8

Please sign in to comment.