1
0
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:
Vladimir Volek 2019-01-09 14:33:33 +01:00 committed by Szymon Lesisz
parent 0da4b0bdc9
commit 2c24b75d47

View File

@ -18,7 +18,7 @@ export default (props: Props) => {
const { reserve, balance } = account; const { reserve, balance } = account;
const bigBalance = new Bignumber(balance); const bigBalance = new Bignumber(balance);
const bigReserve = new Bignumber(reserve); 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( notifications.push(
<Notification <Notification
key="xrp-warning" key="xrp-warning"