Skip to content

Commit

Permalink
fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Jan 15, 2024
1 parent 78729ed commit d63ac3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/src/components/AudioInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default function AudioInput({ path, setPath, readonly, audioRef }: AudioI
audioRef.current?.pause();
}

function onTimeUpdate(event: any) {
function onTimeUpdate(_: Event) {
const position = audioRef.current?.currentTime ?? 1;
const total = audioRef.current?.duration ?? 1;
const newProgress = (position / total) * 100;
Expand Down

0 comments on commit d63ac3b

Please sign in to comment.