Skip to content

Commit

Permalink
fix: default proposer name
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendn committed Nov 1, 2022
1 parent 5af31c5 commit 0e4b8ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion views/block/HomeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ export function HomeBlock() {
<BlockBriefRow
key={item.blockHeight}
blockNumber={item.blockHeight}
proposerAddress={astraToEth(proposer.initialDelegatorAddress)}
proposerAddress={
proposer?.initialDelegatorAddress
? astraToEth(proposer?.initialDelegatorAddress)
: ''
}
proposerName={proposer.moniker}
transactions={item.transactionCount}
updatedAt={item.blockTime}
Expand Down

0 comments on commit 0e4b8ca

Please sign in to comment.