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

Commit

Permalink
fix(block): number formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejonas committed Jun 24, 2019
1 parent 8be2441 commit cf73000
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/BlockView/BlockView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function BlockView(props: any) {
}

const {
number, timestamp, hash, parentHash, miner, nonce, difficulty,
timestamp, hash, parentHash, miner, nonce, difficulty,
extraData, stateRoot, transactionsRoot, receiptsRoot, transactions,
} = block;

Expand All @@ -22,7 +22,7 @@ function BlockView(props: any) {
<TableBody>
<TableRow>
<TableCell>Number</TableCell>
<TableCell>{number}</TableCell>
<TableCell>{parseInt(block.number, 16)}</TableCell>
</TableRow>

<TableRow>
Expand Down
4 changes: 2 additions & 2 deletions src/components/NodeList/NodeList.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as React from "react";
import { Link } from "react-router-dom";

interface Props {
interface IProps {
nodes: any[];
}

function NodeList(props: Props) {
function NodeList(props: IProps) {

const pendingTxs = (n: any) => {
if (n.pendingBlock) {
Expand Down

0 comments on commit cf73000

Please sign in to comment.