Fix: fix crypto overrides not being respected

This commit is contained in:
Cesar 2021-01-21 15:25:39 +00:00 committed by Josh Harvey
parent c457faab40
commit 366adad375
3 changed files with 29 additions and 21 deletions

View file

@ -618,9 +618,8 @@ function plugins (settings, deviceId) {
if (!fiatBalance) return null
const notifications = configManager.getNotifications(cryptoCode, null, settings.config)
const override = _.find(override => override.cryptoCurrency === cryptoCode, settings.config.notifications_cryptoBalanceOverrides)
const lowAlertThreshold = override ? override.lowBalance : notifications.cryptoLowBalance
const highAlertThreshold = override ? override.highBalance : notifications.cryptoHighBalance
const lowAlertThreshold = notifications.cryptoLowBalance
const highAlertThreshold = notifications.cryptoHighBalance
const req = {
cryptoCode,