This commit is contained in:
Josh Harvey 2016-12-02 16:37:55 +02:00
parent 1fe550fe1e
commit eea230de60
10 changed files with 42 additions and 47 deletions

View file

@ -29,7 +29,7 @@ function sameState (a, b) {
function checkBalance (rec) {
const settings = settingsLoader.settings()
const config = configManager.unscoped(settings.config)
const lowBalanceThreshold = config.notifications.lowBalanceThreshold
const lowBalanceThreshold = config.lowBalanceThreshold
return lowBalanceThreshold && rec.fiatBalance < lowBalanceThreshold
? {code: 'lowBalance', cryptoCode: rec.cryptoCode, fiatBalance: rec.fiatBalance, fiatCode: rec.fiatCode}
: null