diff --git a/frontend/src/components/Playback/Playback.tsx b/frontend/src/components/Playback/Playback.tsx index 277020cd9..52eac453e 100644 --- a/frontend/src/components/Playback/Playback.tsx +++ b/frontend/src/components/Playback/Playback.tsx @@ -39,6 +39,9 @@ const Playback = ({ const lastPlayerIndex = useRef(-1); const activeAudioEndedListener = useRef<() => void>(); const [state, setState] = useState({ view: PRELOAD }); + + /** FIXME: Nowhere is setView used with the data argument. + * We might want to remove the data argument from setView */ const setView = (view: PlaybackView, data = {}) => { setState({ view, ...data }); }