From 00a6ae5f811879960013bf91b4cb405b59dc227a Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Tue, 15 Oct 2024 20:02:27 -0500 Subject: [PATCH] Remove looping log --- src/components/content/videos/VideoDetails.js | 4 ---- testr.js | 21 +++++++++++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 testr.js diff --git a/src/components/content/videos/VideoDetails.js b/src/components/content/videos/VideoDetails.js index 7025135..de436a7 100644 --- a/src/components/content/videos/VideoDetails.js +++ b/src/components/content/videos/VideoDetails.js @@ -51,10 +51,6 @@ const VideoDetails = ({ processedEvent, topics, title, summary, image, price, au } }, [zaps, processedEvent]); - useEffect(() => { - console.log("author", author); - }, [author]); - const handleDelete = async () => { try { const response = await axios.delete(`/api/resources/${processedEvent.d}`); diff --git a/testr.js b/testr.js new file mode 100644 index 0000000..e4cfb27 --- /dev/null +++ b/testr.js @@ -0,0 +1,21 @@ +const event = { + id: '123', + content: 'encrypted_blob', + created_at: 1714857600, + kind: 30804, + pubkey: 'pubkey', + tags: [ + ["title", "title"], + ["summary", "summary"], + ["image", "image"], + ["published_at", "published_at"], + ["price", "price"], + // This is an array in the format [ "price", "", "", "" ]. + // "price" is the name of the tag + // "" is the amount in numeric format (but included in the tag as a string) + // "" is the currency unit in 3-character ISO 4217 format or ISO 4217-like currency code (e.g. "btc", "eth"). + // "" is optional and can be used to describe recurring payments. SHOULD be in noun format (hour, day, week, month, year, etc.) + ["location", "https://plebdevs.com/.well-known/lnurlp/austin/1234"], + ], + sig: 'sig' +};