From f470363254ccacf0284d02b8cee12012887a90c7 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 2 Jun 2021 18:23:54 +0300 Subject: [PATCH] Enable para -> relay teleport --- packages/react-hooks/src/useTeleport.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/react-hooks/src/useTeleport.ts b/packages/react-hooks/src/useTeleport.ts index 18869489e6..c4836d9246 100644 --- a/packages/react-hooks/src/useTeleport.ts +++ b/packages/react-hooks/src/useTeleport.ts @@ -75,8 +75,7 @@ export function useTeleport (): Teleport { setState((prev) => ({ ...prev, - // FIXME Cannot quite get this working... - allowTeleport: false, // !!endpoint, + allowTeleport: !!endpoint, destinations: endpoint && endpoint.genesisHashRelay // FIXME we probably just want to check for !chainParaId.eq(paraId) || !!genesisHash (would affect Teleport modal) ? extractRelayDestinations(endpoint.genesisHashRelay, ({ genesisHash }) => !!genesisHash)