mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-29 10:28:08 +00:00
Add zero zero balance case for notification
This commit is contained in:
parent
0da4b0bdc9
commit
2c24b75d47
@ -18,7 +18,7 @@ export default (props: Props) => {
|
||||
const { reserve, balance } = account;
|
||||
const bigBalance = new Bignumber(balance);
|
||||
const bigReserve = new Bignumber(reserve);
|
||||
if (location.pathname.includes('xrp') && bigBalance.lessThan(bigReserve)) {
|
||||
if (location.pathname.includes('xrp') && (bigBalance.lessThan(bigReserve) || bigBalance.lessThanOrEqualTo(new Bignumber(0)))) {
|
||||
notifications.push(
|
||||
<Notification
|
||||
key="xrp-warning"
|
||||
|
Loading…
Reference in New Issue
Block a user