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
This commit is contained in:
Claude
2025-12-21 12:28:08 +00:00
parent 9c30a179e9
commit c83bc20c11
2 changed files with 3 additions and 4 deletions

View File

@@ -70,7 +70,6 @@ describe("PublishSpellAction", () => {
accountManager.active = {
pubkey: "pubkey",
signer: mockSigner,
pubkey: "pubkey",
};
const spell: LocalSpell = {

View File

@@ -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)}...`,
);
};