Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Commit

Permalink
fix: showing blocks on dashboard with low block numbers
Browse files Browse the repository at this point in the history
fixes #267
  • Loading branch information
shanejonas committed Feb 26, 2020
1 parent f84dcff commit af99025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/containers/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ export default (props: any) => {

<BlockListContainer
from={Math.max(blockNumber - 14, 0)}
to={blockNumber - 3}
to={blockNumber}
disablePrev={true}
disableNext={blockNumber === 0}
disableNext={blockNumber < 14}
onNext={() => {
props.history.push(`/blocks/${blockNumber - 15}`);
}}
Expand Down

0 comments on commit af99025

Please sign in to comment.