Skip to content
Snippets Groups Projects
Commit 082b817f authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

account details: fix jams account detecting

Change-Id: I615c73aba775fc74dccd94e53671a75585e37df5
parent cdc25c76
Branches
Tags
No related merge requests found
......@@ -52,6 +52,9 @@ class AccountModel: Equatable {
self.enabled = newDetails
.get(withConfigKeyModel: ConfigKeyModel.init(withKey: .accountEnable))
.boolValue
let managerConfModel = ConfigKeyModel(withKey: .managerUri)
let isJams = !newDetails.get(withConfigKeyModel: managerConfModel).isEmpty
self.isJams = isJams
}
}
}
......@@ -97,9 +100,6 @@ class AccountModel: Equatable {
ConfigKeyModel(withKey: .accountRegistrationStatus))) {
self.status = status
}
let managerConfModel = ConfigKeyModel(withKey: .managerUri)
self.isJams = !newDetails.get(withConfigKeyModel: managerConfModel).isEmpty
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment