Skip to content

Commit

Permalink
Redirect if not allowed ai (#3300)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson committed May 2, 2023
1 parent 46ca388 commit 09399ce
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ const AiPageProvider = ({
}
}, [goToRoute, user])

useEffect(() => {
if (user && !user.allow_ai_attribution) {
goToRoute(profilePage(user?.handle))
}
}, [user, goToRoute])

const getLineupProps = () => {
return {
selfLoad: true,
Expand Down

0 comments on commit 09399ce

Please sign in to comment.