Fix flags (council may not exist) (#2207)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user