From 19a86525cb02b8f8894dce9392a73cdb30ba4f3b Mon Sep 17 00:00:00 2001 From: Gigi Date: Tue, 14 Oct 2025 11:03:30 +0200 Subject: [PATCH] debug: add logging to track author pubkey and profile resolution --- src/components/HighlightCitation.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/HighlightCitation.tsx b/src/components/HighlightCitation.tsx index 86ca188b..14e025c8 100644 --- a/src/components/HighlightCitation.tsx +++ b/src/components/HighlightCitation.tsx @@ -21,6 +21,14 @@ export const HighlightCitation: React.FC = ({ const [articleTitle, setArticleTitle] = useState() const authorProfile = useEventModel(Models.ProfileModel, authorPubkey ? [authorPubkey] : null) + // Debug: log the authorPubkey and profile + useEffect(() => { + if (authorPubkey) { + console.log('📝 HighlightCitation - authorPubkey:', authorPubkey) + console.log('📝 HighlightCitation - authorProfile:', authorProfile) + } + }, [authorPubkey, authorProfile]) + useEffect(() => { if (!eventReference || !relayPool) { return