Skip to content

Commit

Permalink
Customas: remove '' as possible value to checksummedFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
EtDu committed Oct 22, 2020
1 parent 7fe798e commit 75e950a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/UI/CustomGas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class CustomGas extends PureComponent {
const {
transaction: { from, value }
} = this.props;
const checksummedFrom = safeToChecksumAddress(from) || '';
const checksummedFrom = safeToChecksumAddress(from);
const fromAccount = this.props.accounts[checksummedFrom];
if (hexToBN(fromAccount.balance).lt(gas.mul(gasPrice).add(toBN(value))))
return strings('transaction.insufficient');
Expand Down

0 comments on commit 75e950a

Please sign in to comment.