Add check for transaction.

This commit is contained in:
Spencer Ofwiti 2021-04-26 14:47:18 +03:00
parent 4030f709fc
commit 04a7e377d8

View File

@ -23,7 +23,7 @@ export class TransactionDetailsComponent implements OnInit {
) { } ) { }
ngOnInit(): void { ngOnInit(): void {
if (this.transaction.type === 'conversion') { if (this.transaction?.type === 'conversion') {
this.traderBloxbergLink = 'https://blockexplorer.bloxberg.org/address/' + this.transaction?.trader + '/transactions'; this.traderBloxbergLink = 'https://blockexplorer.bloxberg.org/address/' + this.transaction?.trader + '/transactions';
} else { } else {
this.senderBloxbergLink = 'https://blockexplorer.bloxberg.org/address/' + this.transaction?.from + '/transactions'; this.senderBloxbergLink = 'https://blockexplorer.bloxberg.org/address/' + this.transaction?.from + '/transactions';