Skip to content

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

style: tidy inline type and event listener formatting

Steven Enamakelc7759e74ec02
diff --git a/app/src/features/human/chatMascot/ChatMascotOverlay.tsx b/app/src/features/human/chatMascot/ChatMascotOverlay.tsx
index 1caf19918f..53406f123d 100644
--- a/app/src/features/human/chatMascot/ChatMascotOverlay.tsx
+++ b/app/src/features/human/chatMascot/ChatMascotOverlay.tsx
@@ -84,12 +84,7 @@ const ChatMascotOverlay = () => {
useEffect(() => {
const onPlayback = (event: Event) => {
const detail = (
- event as CustomEvent<{
- owner: string;
- active: boolean;
- viseme: string;
- claim: boolean;
- }>
+ event as CustomEvent<{ owner: string; active: boolean; viseme: string; claim: boolean }>
).detail;
if (!detail?.owner) return;
if (detail.active && detail.claim) {
diff --git a/app/src/features/voiceNotes/VoiceNotePlayer.tsx b/app/src/features/voiceNotes/VoiceNotePlayer.tsx
index 2c692f62ef..56545b2b2e 100644
--- a/app/src/features/voiceNotes/VoiceNotePlayer.tsx
+++ b/app/src/features/voiceNotes/VoiceNotePlayer.tsx
@@ -141,7 +141,7 @@ function VoiceNotePlayerBody({
publishAtCurrentTime();
playbackRafRef.current = window.requestAnimationFrame(sampleWhilePlaying);
};
- audio.addEventListener('timeupdate', publishAtCurrentTime);
+ audio.addEventListener('timeupdate', () => publishAtCurrentTime());
audio.addEventListener('loadedmetadata', () => {
if (Number.isFinite(audio.duration) && audio.duration > 0) {
setLoadedMs(audio.duration * 1000);