diff --git a/src/components/Article/AudioPlayer/AudioPlayer.tsx b/src/components/Article/AudioPlayer/AudioPlayer.tsx index 6c64bf68..ddbe8e40 100644 --- a/src/components/Article/AudioPlayer/AudioPlayer.tsx +++ b/src/components/Article/AudioPlayer/AudioPlayer.tsx @@ -16,7 +16,7 @@ type Props = { onChangeMediaIndex?: (direction: 'up' | 'down', index) => void } -const getFormattedTime = (point) => new Date(point * 1000).toISOString().slice(14, -5) +const getFormattedTime = (point: number) => new Date(point * 1000).toISOString().slice(14, -5) export const AudioPlayer = (props: Props) => { const audioRef: { current: HTMLAudioElement } = { current: null } diff --git a/src/components/Article/AudioPlayer/PlayerPlaylist.tsx b/src/components/Article/AudioPlayer/PlayerPlaylist.tsx index 0c528aaf..4102678e 100644 --- a/src/components/Article/AudioPlayer/PlayerPlaylist.tsx +++ b/src/components/Article/AudioPlayer/PlayerPlaylist.tsx @@ -54,8 +54,10 @@ export const PlayerPlaylist = (props: Props) => { when={activeEditIndex() === index() && props.editorMode} fallback={ <> -