Skip to content

Commit

Permalink
fix to not show go pro prompt till logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
noahgsolomon committed Jul 31, 2024
1 parent fc3073b commit df3564d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ export default function Home({
</Link>
</p>
</div>
{!userDB?.user?.subscribed &&
{userDB?.user &&
!userDB?.user?.subscribed &&
(userDB?.user?.credits ?? 0) <= 0 &&
!pendingVideo ? (
<div className="flex max-w-[300px] flex-col gap-0 rounded-lg border border-border bg-card/80 p-4 text-center text-sm shadow-sm">
Expand Down

0 comments on commit df3564d

Please sign in to comment.