Skip to content
This repository was archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
Safeguarding variable value.
Browse files Browse the repository at this point in the history
  • Loading branch information
evertonfraga committed Nov 19, 2018
1 parent 2a9072b commit d075fcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interface/components/TxHistory/TxRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class TxRow extends Component {
return etherAmount;
};

toBigNumber = value => {
toBigNumber = v => {
const value = v || 0;
return web3.utils.isHex(value)
? new BigNumber(web3.utils.hexToNumberString(value))
: new BigNumber(value);
Expand Down

0 comments on commit d075fcd

Please sign in to comment.