Fix: fix crypto overrides not being respected
This commit is contained in:
parent
c457faab40
commit
366adad375
3 changed files with 29 additions and 21 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue