Skip to content

Commit

Permalink
Fix minor null issue binding to ticker information
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Jul 5, 2022
1 parent ad814d6 commit aa62dc4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<a class="chain-home-link" [routerLink]="[chain.symbol.toLowerCase(), 'explorer']">
{{chain.name}}
</a><br>
<div class="chain-home-ticker" *ngIf="tickers && chain.coin">
<div class="chain-home-ticker" *ngIf="tickers && chain.coin && tickers[chain.coin]">
{{ tickers[chain.coin].btc }} <i class="fab fa-btc"></i> <span *ngIf="tickers[chain.coin].btc_24h_change" class="chain-home-ticker-change" [ngClass]="getChangeClass(tickers[chain.coin].btc_24h_change)">{{tickers[chain.coin].btc_24h_change.toFixed(2)}}%</span>
</div>
</li>
Expand Down

0 comments on commit aa62dc4

Please sign in to comment.