mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-30 17:01:25 +00:00
Removes inconsistencies in wallet.js and Insuff. Balance Modal
This commit is contained in:
parent
7a328f185a
commit
f1bdb5e20d
2 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ export function doSendDraftTransaction() {
|
||||||
const balance = selectBalance(state);
|
const balance = selectBalance(state);
|
||||||
const amount = selectDraftTransactionAmount(state);
|
const amount = selectDraftTransactionAmount(state);
|
||||||
|
|
||||||
if (balance - amount < 1) {
|
if (balance - amount <= 0) {
|
||||||
return dispatch(doOpenModal(modals.INSUFFICIENT_BALANCE));
|
return dispatch(doOpenModal(modals.INSUFFICIENT_BALANCE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ class ModalInsufficientBalance extends React.PureComponent {
|
||||||
onConfirmed={addBalance}
|
onConfirmed={addBalance}
|
||||||
>
|
>
|
||||||
{__(
|
{__(
|
||||||
"Insufficient balance: after this transaction you would have less than 1 LBC in your wallet."
|
"Insufficient balance: after this transaction you would have less than 0 LBCs in your wallet."
|
||||||
)}
|
)}
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue