diff --git a/src/pages/videos.tsx b/src/pages/videos.tsx index 9bfd8ed..b8e69a4 100644 --- a/src/pages/videos.tsx +++ b/src/pages/videos.tsx @@ -44,9 +44,13 @@ const VideoList: NextPage = () => {
- {["active", "past_due"].includes( + {!isLoading && + status !== "loading" && + !["active", "past_due"].includes( session?.user.stripeSubscriptionStatus ?? "" ) ? ( + + ) : (
{videos && videos.map(({ title, id, createdAt }) => ( @@ -73,8 +77,6 @@ const VideoList: NextPage = () => {
) : null}
- ) : ( - )}