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

Commit 2a9072b

Browse files
committed
Safeguarding variable value.
1 parent 65c5f88 commit 2a9072b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/components/TxHistory/TxRow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TxRow extends Component {
1212
valueToEtherAmount = value => {
1313
const theValue = web3.utils.isHex(value)
1414
? new BigNumber(web3.utils.hexToNumberString(value))
15-
: new BigNumber(value);
15+
: new BigNumber(value || 0);
1616
const etherAmount = theValue
1717
.dividedBy(new BigNumber('1000000000000000000'))
1818
.toFixed();

0 commit comments

Comments
 (0)