From ab908e18b2d6fa082f29cae54cd27408078999b1 Mon Sep 17 00:00:00 2001 From: Hailey Date: Sun, 9 Jun 2024 17:04:31 -0700 Subject: [PATCH] fix flash of error --- src/screens/StarterPack/Wizard/index.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/screens/StarterPack/Wizard/index.tsx b/src/screens/StarterPack/Wizard/index.tsx index 3596db06c9..402e39aafb 100644 --- a/src/screens/StarterPack/Wizard/index.tsx +++ b/src/screens/StarterPack/Wizard/index.tsx @@ -56,14 +56,18 @@ export function Wizard({ const listUri = starterPack?.list?.uri - const {data} = useListMembersQuery(listUri, 50) - const profiles = data?.pages.flatMap(p => p.items.map(i => i.subject)) + const { + data: profilesData, + isLoading: isLoadingProfiles, + isError: isErrorProfiles, + } = useListMembersQuery(listUri, 50) + const profiles = profilesData?.pages.flatMap(p => p.items.map(i => i.subject)) if (name && rkey && (!starterPack || (starterPack && listUri && !profiles))) { return ( )