fix: idiotism

This commit is contained in:
Adrian Castro
2024-03-09 11:39:21 +01:00
parent bfa0c2b71e
commit 0d135182c1

View File

@@ -88,9 +88,9 @@ export const VideoPlayer = () => {
const togglePlayback = () => { const togglePlayback = () => {
setShouldPlay(!shouldPlay); setShouldPlay(!shouldPlay);
if (shouldPlay) { if (shouldPlay) {
void pauseAudio();
} else {
void playAudio(); void playAudio();
} else {
void pauseAudio();
} }
}; };