diff --git a/src/app/explorer/consts.ts b/src/app/explorer/consts.ts index 6321c928f0..1860fdce8d 100644 --- a/src/app/explorer/consts.ts +++ b/src/app/explorer/consts.ts @@ -1,2 +1,3 @@ export const ALPHA_GUILDS_SWR_KEY = "alpha-guilds" -export const ALPHA_GUILDS_API_URL = "https://api-alpha.guild.xyz/guilds" +export const ALPHA_GUILDS_API_URL = + "https://api-alpha.guild.xyz/guilds?isVerified=true" diff --git a/src/app/explorer/hooks/useAlphaGuilds.ts b/src/app/explorer/hooks/useAlphaGuilds.ts index 41db5d0a68..326ddb1504 100644 --- a/src/app/explorer/hooks/useAlphaGuilds.ts +++ b/src/app/explorer/hooks/useAlphaGuilds.ts @@ -4,8 +4,6 @@ import { ALPHA_GUILDS_API_URL, ALPHA_GUILDS_SWR_KEY } from "../consts" import { AlphaGuild } from "../types" export const useAlphaGuilds = () => - useSWRImmutable(ALPHA_GUILDS_SWR_KEY, () => - fetcher(ALPHA_GUILDS_API_URL).then((guilds: AlphaGuild[]) => - guilds.filter((g) => g.isVerified) - ) + useSWRImmutable(ALPHA_GUILDS_SWR_KEY, () => + fetcher(ALPHA_GUILDS_API_URL) )