From 1e1b6f3afef36a96b2482e82afb3bcbc40f45843 Mon Sep 17 00:00:00 2001 From: Bob Date: Fri, 20 Dec 2024 11:25:42 +0100 Subject: [PATCH] fix guildmembers fetching --- client/src/hooks/helpers/useGuilds.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/hooks/helpers/useGuilds.tsx b/client/src/hooks/helpers/useGuilds.tsx index b197add82..5dfbdea8c 100644 --- a/client/src/hooks/helpers/useGuilds.tsx +++ b/client/src/hooks/helpers/useGuilds.tsx @@ -284,7 +284,7 @@ export const useGuilds = () => { const getPlayerListInGuild = (guild_entity_id: ID) => { const players = Array.from( - runQuery([Has(AddressName), Has(GuildMember), HasValue(Guild, { entity_id: guild_entity_id })]), + runQuery([Has(AddressName), Has(GuildMember), HasValue(GuildMember, { guild_entity_id: guild_entity_id })]), ).map((playerEntity) => { const player = getComponentValue(AddressName, playerEntity);