Fix flags (council may not exist) (#2207)

This commit is contained in:
Jaco Greeff
2020-04-25 09:47:46 +02:00
committed by GitHub
parent 00b8c10881
commit a135abaea2
11 changed files with 57 additions and 57 deletions
+3 -3
View File
@@ -32,13 +32,13 @@
"@polkadot/rpc-core": "1.12.0-beta.6",
"@polkadot/rpc-provider": "1.12.0-beta.6",
"@polkadot/types": "1.12.0-beta.6",
"@polkadot/util": "^2.9.0-beta.0",
"@polkadot/util-crypto": "^2.9.0-beta.0",
"@polkadot/util": "^2.9.0-beta.1",
"@polkadot/util-crypto": "^2.9.0-beta.1",
"bn.js": "^5.1.1",
"memoizee": "^0.4.14",
"rxjs": "^6.5.5"
},
"devDependencies": {
"@polkadot/keyring": "^2.9.0-beta.0"
"@polkadot/keyring": "^2.9.0-beta.1"
}
}
+1 -1
View File
@@ -40,7 +40,7 @@ export function flags (api: ApiInterfaceRx): (address?: AccountId | Address | st
address && api.query[councilSection]?.members
? api.query[councilSection].members()
: of(undefined),
address && api.query.council.members
address && api.query.council?.members
? api.query.council.members()
: of([]),
address && api.query.technicalCommittee?.members