Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Ji Hwan <[email protected]>
  • Loading branch information
jhkimqd committed Sep 2, 2024
1 parent 8526304 commit 5f65d54
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ func renderMonitorUI(ctx context.Context, ec *ethclient.Client, ms *monitorStatu
// in monitorSelectModeTransaction, blocks will always be selected
transactionColumnRatio := []int{30, 5, 20, 20, 5, 10}
if len(renderedBlocks)-blockTable.SelectedRow < 0 {
// ms.SelectedBlock = renderedBlocksTemp[len(renderedBlocks)]
return
} else if len(renderedBlocks) == 0 {
return
Expand Down Expand Up @@ -536,14 +535,12 @@ func renderMonitorUI(ctx context.Context, ec *ethclient.Client, ms *monitorStatu
Msg("setBlock")

if len(renderedBlocks)-blockTable.SelectedRow < 0 {
// ms.SelectedBlock = renderedBlocksTemp[len(renderedBlocks)]
return
} else if len(renderedBlocks) == 0 {
return
} else {
ms.SelectedBlock = renderedBlocks[len(renderedBlocks)-blockTable.SelectedRow]
}
// ms.SelectedBlock = renderedBlocks[len(renderedBlocks)-blockTable.SelectedRow]
blockInfo.Rows = ui.GetSimpleBlockFields(ms.SelectedBlock)
transactionInfo.ColumnWidths = getColumnWidths(transactionColumnRatio, transactionInfo.Dx())
transactionInfo.Rows = ui.GetBlockTxTable(ms.SelectedBlock, ms.ChainID)
Expand Down

0 comments on commit 5f65d54

Please sign in to comment.