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

Commit

Permalink
fix: add radix to parse int
Browse files Browse the repository at this point in the history
Co-authored-by: Shane <[email protected]>
  • Loading branch information
BelfordZ and shanejonas authored Oct 17, 2020
1 parent fca52bd commit d7b3841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/NodeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function NodeView(props: any) {
let blockNum = blockNumber;
if (urlParams && urlParams.number !== undefined) {
try {
blockNum = parseInt(urlParams.number)
blockNum = parseInt(urlParams.number, 10)
} catch (e) {
console.error("Unable to parse block number from URL");
}
Expand Down

0 comments on commit d7b3841

Please sign in to comment.