Skip to content

Commit

Permalink
chore: Propose removing unused data argument from setView function in…
Browse files Browse the repository at this point in the history
… Playback.tsx
  • Loading branch information
drikusroor committed Aug 26, 2024
1 parent 5922022 commit 0162bc8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/components/Playback/Playback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ const Playback = ({
const lastPlayerIndex = useRef(-1);
const activeAudioEndedListener = useRef<() => void>();
const [state, setState] = useState<PlaybackState>({ 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 });
}
Expand Down

0 comments on commit 0162bc8

Please sign in to comment.