Spaces:
Sleeping
Sleeping
wip
Browse files
src/components/court/Court.tsx
CHANGED
@@ -47,7 +47,10 @@ const CourtScene: FC<CourtSceneProps> = ({
|
|
47 |
}
|
48 |
};
|
49 |
|
|
|
50 |
playAudio();
|
|
|
|
|
51 |
}, [currentQuestion]);
|
52 |
|
53 |
useEffect(() => {
|
|
|
47 |
}
|
48 |
};
|
49 |
|
50 |
+
if (currentQuestion) {
|
51 |
playAudio();
|
52 |
+
}
|
53 |
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
54 |
}, [currentQuestion]);
|
55 |
|
56 |
useEffect(() => {
|