diff --git a/src/state/user/hooks.tsx b/src/state/user/hooks.tsx index 76950e4fff..10308cb4a6 100644 --- a/src/state/user/hooks.tsx +++ b/src/state/user/hooks.tsx @@ -498,7 +498,7 @@ const participantDefault = { export const useGetParticipantKyberAIInfo = (): ParticipantInfo => { const { userInfo } = useSessionInfo() const { data: data = participantDefault, isError } = useGetParticipantInfoQuery(undefined, { - skip: !userInfo, + skip: !userInfo || userInfo?.data?.hasAccessToKyberAI, }) return isError ? participantDefault : data } @@ -511,7 +511,7 @@ export const useIsWhiteListKyberAI = () => { isError, refetch, } = useGetParticipantInfoQuery(undefined, { - skip: !userInfo, + skip: !userInfo || userInfo?.data?.hasAccessToKyberAI, }) const { account } = useActiveWeb3React()