Skip to content

Commit

Permalink
fix: instead of panic return to start mode
Browse files Browse the repository at this point in the history
Signed-off-by: Ji Hwan <[email protected]>
  • Loading branch information
jhkimqd committed Nov 22, 2024
1 parent 117dc7a commit 77ce6b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,10 @@ func renderMonitorUI(ctx context.Context, ec *ethclient.Client, ms *monitorStatu
case "<C-f>", "<PageDown>":
// When pressing PageDown beyond the genesis block, redraw the monitor screen to avoid freezing at the previous rendered blocks.
if len(renderedBlocks) == 0 {
// forceRedraw = true
// redraw(ms, true)
currentMode = monitorModeExplorer
blockTable.SelectedRow = 0
forceRedraw = true
redraw(ms, true)
break
}

Expand Down

0 comments on commit 77ce6b9

Please sign in to comment.