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

Commit

Permalink
fix: add units
Browse files Browse the repository at this point in the history
fixes #150
  • Loading branch information
shanejonas committed Nov 19, 2019
1 parent 1ad10b6 commit 9f2dcd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/TxView/TxView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ function TxView(props: ITxViewProps) {

<TableRow>
<TableCell>{t("Gas Price")}</TableCell>
<TableCell>{hexToNumber(tx.gasPrice)}</TableCell>
<TableCell>{hexToNumber(tx.gasPrice)} Wei</TableCell>
</TableRow>

<TableRow>
<TableCell>{t("Value")}</TableCell>
<TableCell>{unit.fromWei(tx.value, "ether")}</TableCell>
<TableCell>{unit.fromWei(tx.value, "ether")} Ether</TableCell>
</TableRow>

<TableRow>
Expand Down Expand Up @@ -174,8 +174,8 @@ function TxView(props: ITxViewProps) {
</TableRow>

<TableRow>
<TableCell>{t("Value in Ether")}</TableCell>
<TableCell>{unit.fromWei(tx.value, "ether")}</TableCell>
<TableCell>{t("Value")}</TableCell>
<TableCell>{unit.fromWei(tx.value, "ether")} Ether</TableCell>
</TableRow>

<TableRow>
Expand Down

0 comments on commit 9f2dcd5

Please sign in to comment.