Skip to content

Commit

Permalink
fix: filter out external subnets (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendan committed Feb 5, 2024
1 parent 13513b2 commit 4b5e8c7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/frontend/src/hooks/useRegisteredSubnets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ export default function useRegisteredSubnets() {
i++
}

const subnets = await Promise.allSettled(promises).then((values) =>
values
.filter((v) => v.status === 'fulfilled')
.map((v) => (v.status === 'fulfilled' ? v.value : undefined))
.filter((v) => v)
const subnets = await Promise.allSettled(promises).then(
(values) =>
values
.filter((v) => v.status === 'fulfilled')
.map((v) => (v.status === 'fulfilled' ? v.value : undefined))
.filter((v) => v && v.name === 'Incal') // TMP, to filter out external subnets
)
setRegisteredSubnets(subnets as SubnetWithId[])
}
Expand Down

0 comments on commit 4b5e8c7

Please sign in to comment.