lte -> lt (#1466)
This commit is contained in:
parent
4b9b82e504
commit
928820cbec
@ -48,7 +48,7 @@ export class Transfer extends React.PureComponent<Props, State> {
|
||||
|
||||
const extraAmount = amount instanceof Compact ? amount.toBn() : new BN(amount);
|
||||
const isCreation = balances_all.votingBalance.isZero() && fees.creationFee.gtn(0);
|
||||
const isNoEffect = extraAmount.add(balances_all.votingBalance).lte(fees.existentialDeposit);
|
||||
const isNoEffect = extraAmount.add(balances_all.votingBalance).lt(fees.existentialDeposit);
|
||||
const extraWarn = isCreation || isNoEffect;
|
||||
const update = {
|
||||
extraAmount,
|
||||
|
||||
@ -97,7 +97,7 @@ export class FeeDisplay extends React.PureComponent<Props, State> {
|
||||
|
||||
const allTotal = extraAmount.add(allFees);
|
||||
const hasAvailable = balances_all.availableBalance.gtn(0);
|
||||
const isRemovable = balances_all.votingBalance.sub(allTotal).lte(balances_fees.existentialDeposit);
|
||||
const isRemovable = balances_all.votingBalance.sub(allTotal).lt(balances_fees.existentialDeposit);
|
||||
const isReserved = balances_all.freeBalance.isZero() && balances_all.reservedBalance.gtn(0);
|
||||
const allWarn = extraWarn;
|
||||
const overLimit = txLength >= MAX_SIZE_BYTES;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user