From 1e2a419c14675c3a8724d447ea74d2ab32a74daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csete=20Bal=C3=A1zs?= Date: Fri, 4 Jul 2025 15:46:12 +0200 Subject: [PATCH] fix(useAlphaGuilds): pass isVerified=true in query param --- src/app/explorer/consts.ts | 3 ++- src/app/explorer/hooks/useAlphaGuilds.ts | 6 ++---- 2 files changed, 4 insertions(+), 5 deletions(-) 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) )