Skip to content

Commit

Permalink
fix: loop api
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Oct 2, 2023
1 parent 8cd1dbd commit 4d03ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/state/user/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -511,7 +511,7 @@ export const useIsWhiteListKyberAI = () => {
isError,
refetch,
} = useGetParticipantInfoQuery(undefined, {
skip: !userInfo,
skip: !userInfo || userInfo?.data?.hasAccessToKyberAI,
})

const { account } = useActiveWeb3React()
Expand Down

0 comments on commit 4d03ed8

Please sign in to comment.