From 224b1faeba9818390a8b261abdfb6ce465c59199 Mon Sep 17 00:00:00 2001 From: Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> Date: Tue, 28 Sep 2021 17:43:41 +0200 Subject: [PATCH] Fix autosubscribe to subscribe to Polkadot instead of Kusama (#413) --- frontend/src/Connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Connection.ts b/frontend/src/Connection.ts index c378ca5..fe7ffe6 100644 --- a/frontend/src/Connection.ts +++ b/frontend/src/Connection.ts @@ -541,7 +541,7 @@ export class Connection { let topChain: Maybe = null; for (const chain of chains.values()) { - if (PINNED_CHAINS[chain.label] === 1) { + if (PINNED_CHAINS[chain.genesisHash] === 1) { topChain = chain; break; }