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
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,9 @@ class AccountModel: Equatable { ...@@ -52,6 +52,9 @@ class AccountModel: Equatable {
self.enabled = newDetails self.enabled = newDetails
.get(withConfigKeyModel: ConfigKeyModel.init(withKey: .accountEnable)) .get(withConfigKeyModel: ConfigKeyModel.init(withKey: .accountEnable))
.boolValue .boolValue
let managerConfModel = ConfigKeyModel(withKey: .managerUri)
let isJams = !newDetails.get(withConfigKeyModel: managerConfModel).isEmpty
self.isJams = isJams
} }
} }
} }
...@@ -97,9 +100,6 @@ class AccountModel: Equatable { ...@@ -97,9 +100,6 @@ class AccountModel: Equatable {
ConfigKeyModel(withKey: .accountRegistrationStatus))) { ConfigKeyModel(withKey: .accountRegistrationStatus))) {
self.status = status 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