diff --git a/src/pages/videos.tsx b/src/pages/videos.tsx index a6d7348..9bfd8ed 100644 --- a/src/pages/videos.tsx +++ b/src/pages/videos.tsx @@ -31,7 +31,11 @@ const VideoList: NextPage = () => {
Screenity
- + {["active", "past_due"].includes( + session?.user.stripeSubscriptionStatus ?? "" + ) ? ( + + ) : null} {status === "authenticated" && (
@@ -40,9 +44,9 @@ const VideoList: NextPage = () => {
- {session?.user.stripeSubscriptionStatus === null ? ( - - ) : ( + {["active", "past_due"].includes( + session?.user.stripeSubscriptionStatus ?? "" + ) ? (
{videos && videos.map(({ title, id, createdAt }) => ( @@ -69,6 +73,8 @@ const VideoList: NextPage = () => {
) : null}
+ ) : ( + )}