Add real slot info to transactions table (#16)

* Add real slot info to transactions table

* npm run format:fix
This commit is contained in:
Justin Starry
2020-03-25 12:21:47 +08:00
committed by Michael Vines
parent ea705f9147
commit 52f5934c3d
2 changed files with 20 additions and 10 deletions

View File

@@ -138,6 +138,8 @@ const renderTransactionRow = (transaction: Transaction) => {
return assertUnreachable(transaction.status);
}
const slotText = `${transaction.slot || "-"}`;
return (
<tr key={transaction.signature}>
<td>
@@ -152,7 +154,7 @@ const renderTransactionRow = (transaction: Transaction) => {
<code>{transaction.signature}</code>
</td>
<td>-</td>
<td>-</td>
<td>{slotText}</td>
</tr>
);
};