debug: add logging to track author pubkey and profile resolution

This commit is contained in:
Gigi
2025-10-14 11:03:30 +02:00
parent 29213ceb1c
commit 19a86525cb

View File

@@ -21,6 +21,14 @@ export const HighlightCitation: React.FC<HighlightCitationProps> = ({
const [articleTitle, setArticleTitle] = useState<string>()
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