From 2c24b75d4740154ea2576bf4bb362e4c5f1ffb10 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Wed, 9 Jan 2019 14:33:33 +0100 Subject: [PATCH] Add zero zero balance case for notification --- src/components/notifications/Context/components/Static/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/notifications/Context/components/Static/index.js b/src/components/notifications/Context/components/Static/index.js index bdc634a8..8973da5e 100644 --- a/src/components/notifications/Context/components/Static/index.js +++ b/src/components/notifications/Context/components/Static/index.js @@ -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(