Skip to content

Commit

Permalink
fix duplicate call mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson committed Jun 21, 2023
1 parent ce231cd commit 5b30875
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,13 @@ export function ChallengeSubmission({

// Use the existing accessToken if present to get the current user's profile / userId
const { data: userProfile, isLoading: isProfileLoading } =
useGetCurrentUserProfile()
useGetCurrentUserProfile({
enabled: isLoggedIn,
onError: () => {
setLoading(false)
setErrorMessage(`Error: Could not retrieve user profile`)
},
})
useGetCurrentUserProfile({
enabled: isLoggedIn,
onError: () => {
setLoading(false)
setErrorMessage(`Error: Could not retrieve user profile`)
},
})

// Retrieve the challenge associated with the projectId passed through props
const { data: challenge } = useGetEntityChallenge(projectId, {
Expand Down

0 comments on commit 5b30875

Please sign in to comment.