From 9649c927686107d0a36fed1c2f9c990172f174dc Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Fri, 4 Oct 2024 17:22:50 -0500 Subject: [PATCH] Add log for author in resource payment button --- src/components/content/documents/DocumentDetails.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/content/documents/DocumentDetails.js b/src/components/content/documents/DocumentDetails.js index 3128c1d..18f7818 100644 --- a/src/components/content/documents/DocumentDetails.js +++ b/src/components/content/documents/DocumentDetails.js @@ -13,6 +13,7 @@ import { getTotalFromZaps } from "@/utils/lightning"; import { useSession } from "next-auth/react"; import useWindowWidth from "@/hooks/useWindowWidth"; import dynamic from "next/dynamic"; +import { auth } from "@getalby/sdk"; const MDDisplay = dynamic( () => import("@uiw/react-markdown-preview"), @@ -42,6 +43,10 @@ const DocumentDetails = ({ processedEvent, topics, title, summary, image, price, console.log("authorView", authorView); }, [authorView]); + useEffect(() => { + console.log("author", author); + }, [author]); + const handleDelete = async () => { try { const response = await axios.delete(`/api/resources/${processedEvent.d}`);