Enable para -> relay teleport

This commit is contained in:
Jaco Greeff 2021-06-02 18:23:54 +03:00
parent c7520b5f2f
commit f470363254
No known key found for this signature in database
GPG Key ID: 270FB2D05A05357C

View File

@ -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)