mirror of
https://github.com/dergigi/boris.git
synced 2025-12-19 07:34:28 +01:00
fix(lint): resolve unused var and empty catch issues
This commit is contained in:
@@ -182,7 +182,7 @@ const ContentPanel: React.FC<ContentPanelProps> = ({
|
||||
}
|
||||
}, [activeAccount, relayPool, eventStore, articleIdentifier, settings?.syncReadingPosition, html, markdown])
|
||||
|
||||
const { isReadingComplete, progressPercentage, saveNow } = useReadingPosition({
|
||||
const { progressPercentage, saveNow } = useReadingPosition({
|
||||
enabled: isTextContent,
|
||||
syncEnabled: settings?.syncReadingPosition !== false,
|
||||
onSave: handleSavePosition,
|
||||
|
||||
@@ -364,7 +364,9 @@ class ReadingProgressController {
|
||||
try {
|
||||
const naddr = nip19.naddrEncode({ kind: KINDS.BlogPost, pubkey: article.pubkey, identifier: dTag })
|
||||
eventIdToNaddr.set(article.id, naddr)
|
||||
} catch {}
|
||||
} catch (e) {
|
||||
console.warn('[readingProgress] Failed to encode naddr for article:', article.id)
|
||||
}
|
||||
}
|
||||
|
||||
// Map pending event IDs to naddrs and emit
|
||||
|
||||
Reference in New Issue
Block a user