null check on wallets
@@ -52,10 +52,12 @@ export class WalletComponent implements OnInit {
}
public attachIcon(items: CoinTotal[]): void {
+ if (items) {
for (var i = 0; i < items.length; i++) {
items[i].icon = this.coinIcon(items[i].coin);
}
}
+}
ngOnInit() {
this.setWallet();
