Fix notify operator call

This commit is contained in:
Rafael Taranto 2019-09-27 17:59:39 +01:00 committed by Josh Harvey
parent 1153c6af6a
commit 1fb35d107b

View file

@ -347,7 +347,7 @@ function plugins (settings, deviceId) {
if (!transactionNotificationsEnabled()) return Promise.resolve()
const isCashOut = tx.direction === 'cashOut'
const zeroConf = isZeroConf(tx)
const zeroConf = isCashOut && isZeroConf(tx)
// 0-conf cash-out should only send notification on redemption
if (zeroConf && isCashOut && !rec.isRedemption && !rec.error) return Promise.resolve()