Skip to content

Commit

Permalink
Merge branch 'main' of github.com:guildxyz/guild.xyz into shadcn-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 12, 2024
2 parents efca6a1 + fb8d0e1 commit 19256a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/requirements/Captcha/components/CompleteCaptcha.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ const CompleteCaptcha = (props: ButtonProps): JSX.Element => {
const { reqAccesses } = useRoleMembership(roleId)

const reqAccess = reqAccesses?.find((err) => err.requirementId === id)
const errorType = reqAccess?.errorType

if (!userId || (!!reqAccess && !errorType)) return null
if (!userId || (!!reqAccess?.access && !reqAccess?.errorType)) return null

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/requirements/PolygonID/components/ConnectPolygonID.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const ConnectPolygonID = (props: ButtonProps) => {
if (!errorType) onClose()
}, [errorType, onClose])

if (!userId || (!!reqAccess && !errorType)) return null
if (!userId || (!!reqAccess?.access && !errorType)) return null

return (
<>
Expand Down

0 comments on commit 19256a6

Please sign in to comment.