Update index.html
This commit is contained in:
parent
1d7e9cd943
commit
26af6173f6
@ -926,12 +926,12 @@
|
|||||||
</li>`;
|
</li>`;
|
||||||
},
|
},
|
||||||
blockCard(blockDetails) {
|
blockCard(blockDetails) {
|
||||||
const { height, tx, time } = blockDetails;
|
const { height, tx, txs, time } = blockDetails;
|
||||||
const plural = parseInt(tx.length) > 1 ? 's' : '';
|
const plural = parseInt((tx || txs).length) > 1 ? 's' : '';
|
||||||
return html`
|
return html`
|
||||||
<div class="block-card grid align-center">
|
<div class="block-card grid align-center">
|
||||||
<a href=${`#/block/${height}`} class="block-height">${height}</a>
|
<a href=${`#/block/${height}`} class="block-height">${height}</a>
|
||||||
<span>${tx.length} Transaction${plural}</span>
|
<span>${(tx || txs).length} Transaction${plural}</span>
|
||||||
<time>${getFormattedTime(time, 'relative')}</time>
|
<time>${getFormattedTime(time, 'relative')}</time>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user