Skip to content

Commit

Permalink
fix: show blocknumber in tx detail
Browse files Browse the repository at this point in the history
  • Loading branch information
Tien Nam Dao committed Nov 21, 2022
1 parent 61bea0e commit 7f749ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion views/transactions/hook/useConvertData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ export default function useConvertData({ data }: { data: TransactionDetail }) {
})
break
case 'blockHeight':
if (data[key] !== undefined && data[key] !== null)
if (data[key] !== undefined && data[key] !== null) {
items.push({
label: CardInfoLabels[key],
type: 'link',
contents: [{ value: '#' + data[key], link: LinkMaker.block(data[key]) }]
})
}
break

case 'from': //from
Expand Down Expand Up @@ -245,6 +246,7 @@ export default function useConvertData({ data }: { data: TransactionDetail }) {
CardInfoLabels.memo,
CardInfoLabels.confirmations,
CardInfoLabels.block,
CardInfoLabels.blockHeight,
//msgvote
CardInfoLabels.voter,
CardInfoLabels.proposalId,
Expand Down

0 comments on commit 7f749ae

Please sign in to comment.