From 26c3ccccc3fb5f1630d75eafa25bbe17a8bc0b40 Mon Sep 17 00:00:00 2001 From: Jaco Date: Sat, 15 May 2021 08:32:32 +0300 Subject: [PATCH] Additional phragmenElection check (#3531) --- packages/api-derive/src/council/votes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api-derive/src/council/votes.ts b/packages/api-derive/src/council/votes.ts index 563308c7a4..0c9bb9d273 100644 --- a/packages/api-derive/src/council/votes.ts +++ b/packages/api-derive/src/council/votes.ts @@ -77,7 +77,7 @@ function retrieveCurrent (api: ApiInterfaceRx): Observable { export function votes (instanceId: string, api: ApiInterfaceRx): () => Observable { return memo(instanceId, (): Observable => - (api.query.electionsPhragmen || api.query.elections).stakeOf + (api.query.phragmenElection || api.query.electionsPhragmen || api.query.elections).stakeOf ? retrievePrev(api) : retrieveCurrent(api) );