From c83bc20c1135fcc1c446f5462c62360881f29aab Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 21 Dec 2025 12:28:08 +0000 Subject: [PATCH] fix: resolve lint errors and duplicate pubkey in test - Fix prettier trailing comma errors in VoiceNoteRenderer - Remove duplicate pubkey property in publish-spell test mock --- src/actions/publish-spell.test.ts | 1 - src/components/nostr/kinds/VoiceNoteRenderer.tsx | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/actions/publish-spell.test.ts b/src/actions/publish-spell.test.ts index aedc0ea..f9db601 100644 --- a/src/actions/publish-spell.test.ts +++ b/src/actions/publish-spell.test.ts @@ -70,7 +70,6 @@ describe("PublishSpellAction", () => { accountManager.active = { pubkey: "pubkey", signer: mockSigner, - pubkey: "pubkey", }; const spell: LocalSpell = { diff --git a/src/components/nostr/kinds/VoiceNoteRenderer.tsx b/src/components/nostr/kinds/VoiceNoteRenderer.tsx index 19eb903..6d1862b 100644 --- a/src/components/nostr/kinds/VoiceNoteRenderer.tsx +++ b/src/components/nostr/kinds/VoiceNoteRenderer.tsx @@ -132,7 +132,7 @@ function WaveformVisualization({ key={i} className={cn( "w-1 rounded-full transition-colors", - isPlayed ? "bg-primary" : "bg-muted-foreground/40" + isPlayed ? "bg-primary" : "bg-muted-foreground/40", )} style={{ height: `${Math.max(4, amplitude * 100)}%`, @@ -290,7 +290,7 @@ function VoiceNotePlayer({ if (!audio || duration <= 0) return; audio.currentTime = progress * duration; }, - [duration] + [duration], ); const progress = duration > 0 ? currentTime / duration : 0; @@ -469,7 +469,7 @@ export function VoiceNoteReplyRenderer({ event }: BaseEventProps) { addWindow( "open", { pointer: replyPointer }, - `Reply to ${replyEvent.pubkey.slice(0, 8)}...` + `Reply to ${replyEvent.pubkey.slice(0, 8)}...`, ); };