mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
null check on wallets
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user