Skip to content

Commit 607fffe

Browse files
committed
Fix minimum balance comparison
1 parent 211d0b4 commit 607fffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/ready/balance.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function balance(minimum) {
22
return ({ balance, BigNumber }) => {
3-
// if balance is less than minimum (compare < 1)
4-
if (BigNumber(balance).lte(BigNumber(minimum || 0))) {
3+
// if balance is less than minimum
4+
if (BigNumber(balance).lt(BigNumber(minimum || 0))) {
55
return {
66
heading: "Get Some ETH",
77
description: `Your current account has less than the necessary minimum balance of ${BigNumber(

0 commit comments

Comments
 (0)