Disable notifications (#4243)

This commit is contained in:
Jaco Greeff 2017-01-20 15:48:14 +01:00 committed by GitHub
parent 203fd8a471
commit 29e91f80d1

View File

@ -88,8 +88,11 @@ function setBalances (_balances, skipNotifications = false) {
// Otherwise, update the value // Otherwise, update the value
const prevValue = prevToken.value; const prevValue = prevToken.value;
// FIXME: Temporary hack to not continuously pop-up notifications until fixed
const FIXME_SKIP = false;
// If received a token/eth (old value < new value), notify // If received a token/eth (old value < new value), notify
if (prevValue.lt(value) && accounts[address] && !skipNotifications) { if (FIXME_SKIP && prevValue.lt(value) && accounts[address] && !skipNotifications) {
const account = accounts[address]; const account = accounts[address];
const txValue = value.minus(prevValue); const txValue = value.minus(prevValue);