Skip to content

Commit

Permalink
fix: MET-2057 fix slot number right menu in blocks page
Browse files Browse the repository at this point in the history
  • Loading branch information
tungnguyendinh committed May 3, 2024
1 parent e4c0b09 commit 40e1dc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/commons/DetailView/DetailViewBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ const DetailViewBlock: React.FC<DetailViewBlockProps> = (props) => {
/>
<ItemName>{t("common.slot")}</ItemName>
<ItemValue>
{data?.epochNo}
<BlockDefault>/{data?.epochSlotNo}</BlockDefault>
{data?.epochSlotNo}
<BlockDefault>/{data?.maxEpochSlot || MAX_SLOT_EPOCH}</BlockDefault>
</ItemValue>
</Item>
</ListItem>
Expand Down
1 change: 1 addition & 0 deletions src/types/block.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ interface Block {
totalFees: number;
totalOutput: number;
txCount: number;
maxEpochSlot: number;
}

type BlockDetail = Block & {
Expand Down

0 comments on commit 40e1dc9

Please sign in to comment.