diff --git a/src/components/notifications/Context/components/Static/index.js b/src/components/notifications/Context/components/Static/index.js index 8973da5e..af8b09d5 100644 --- a/src/components/notifications/Context/components/Static/index.js +++ b/src/components/notifications/Context/components/Static/index.js @@ -15,18 +15,20 @@ export default (props: Props) => { if (!location || !selectedAccount || !account) return null; // Ripple minimum reserve notification - const { reserve, balance } = account; - const bigBalance = new Bignumber(balance); - const bigReserve = new Bignumber(reserve); - if (location.pathname.includes('xrp') && (bigBalance.lessThan(bigReserve) || bigBalance.lessThanOrEqualTo(new Bignumber(0)))) { - notifications.push( - , - ); + if (account.networkType === 'ripple') { + const { reserve, balance } = account; + const bigBalance = new Bignumber(balance); + const bigReserve = new Bignumber(reserve); + if (bigBalance.lessThan(bigReserve)) { + notifications.push( + , + ); + } } return (