Add log for author in resource payment button

This commit is contained in:
austinkelsay 2024-10-04 17:22:50 -05:00
parent be72bd2c11
commit 9649c92768

View File

@ -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}`);