Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

style: reformat custom event type casts and dispatch calls

Steven Enamakel8a43244348a3
diff --git a/app/src/features/human/chatMascot/ChatMascotOverlay.tsx b/app/src/features/human/chatMascot/ChatMascotOverlay.tsx
index e4e37c81bc..f6b95ca524 100644
--- a/app/src/features/human/chatMascot/ChatMascotOverlay.tsx
+++ b/app/src/features/human/chatMascot/ChatMascotOverlay.tsx
@@ -83,11 +83,8 @@ const ChatMascotOverlay = () => {
const replayOwnerRef = useRef<string | null>(null);
useEffect(() => {
const onPlayback = (event: Event) => {
- const detail = (event as CustomEvent<{
- owner: string;
- active: boolean;
- viseme: string;
- }>).detail;
+ const detail = (event as CustomEvent<{ owner: string; active: boolean; viseme: string }>)
+ .detail;
if (!detail?.owner) return;
if (detail.active) {
replayOwnerRef.current = detail.owner;
diff --git a/app/src/features/voiceNotes/VoiceNotePlayer.tsx b/app/src/features/voiceNotes/VoiceNotePlayer.tsx
index 73beb37d81..d51ba60b77 100644
--- a/app/src/features/voiceNotes/VoiceNotePlayer.tsx
+++ b/app/src/features/voiceNotes/VoiceNotePlayer.tsx
@@ -75,9 +75,7 @@ function VoiceNotePlayerBody({
viseme = frame?.viseme ?? 'sil';
}
window.dispatchEvent(
- new CustomEvent('voice-note-mascot', {
- detail: { owner: playbackOwner, active, viseme },
- })
+ new CustomEvent('voice-note-mascot', { detail: { owner: playbackOwner, active, viseme } })
);
},
[mascotPlayback, playbackOwner]