diff --git a/src/components/content/documents/DocumentDetails.js b/src/components/content/documents/DocumentDetails.js index 6e3abb8..18027a8 100644 --- a/src/components/content/documents/DocumentDetails.js +++ b/src/components/content/documents/DocumentDetails.js @@ -327,26 +327,6 @@ const DocumentDetails = ({
{renderPaymentMessage()}
- {nAddress && ( -
- {!paidResource || decryptedContent || session?.user?.role?.subscribed ? ( - - ) : ( -
-

- Comments are only available to content purchasers, subscribers, and the content - creator. -

-
- )} -
- )} {renderContent()} diff --git a/src/components/content/videos/VideoDetails.js b/src/components/content/videos/VideoDetails.js index c42b263..6c9625c 100644 --- a/src/components/content/videos/VideoDetails.js +++ b/src/components/content/videos/VideoDetails.js @@ -333,26 +333,6 @@ const VideoDetails = ({
{renderPaymentMessage()}
- {nAddress && ( -
- {!paidResource || decryptedContent || session?.user?.role?.subscribed ? ( - - ) : ( -
-

- Comments are only available to content purchasers, subscribers, and the content - creator. -

-
- )} -
- )} ); diff --git a/src/pages/details/[slug]/index.js b/src/pages/details/[slug]/index.js index ff3447c..c4704d8 100644 --- a/src/pages/details/[slug]/index.js +++ b/src/pages/details/[slug]/index.js @@ -195,6 +195,9 @@ const Details = () => { const DetailComponent = getDetailComponent(); + const isAuthorized = + !event.price || decryptedContent || session?.user?.role?.subscribed || authorView; + return ( <> { handlePaymentError={handlePaymentError} authorView={authorView} /> - {nAddress !== null && (nsec || npub) ? ( + {nAddress !== null && isAuthorized ? (
- ) : nAddress !== null ? ( -
- + ) : ( +
+

+ Comments are only available to content purchasers, subscribers, and the content creator. +

- ) : null} + )} ); };