mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
fix: idiotism
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user