diff --git a/src/components/game/GameContainer.jsx b/src/components/game/GameContainer.jsx
index e5f665d..502d7a9 100644
--- a/src/components/game/GameContainer.jsx
+++ b/src/components/game/GameContainer.jsx
@@ -8,12 +8,11 @@ import Help from "../../components/game/Help.jsx";
import SoundControl from "../../components/game/SoundControl.jsx";
import ExtraControls from "../../components/game/ExtraControls.jsx";
import { useUser } from "../../hooks/useUser.jsx";
+import Loading from "../../components/animations/Loading.jsx";
export default function GameContainer({ gameId }) {
const gameDatas = useWordpressCustomData(`/screen/play/${gameId}`);
- console.log(gameDatas);
- const [currentTime, setCurrentTime] = useState(0);
const [isDragging, setIsDragging] = useState(false);
const [startX, setStartX] = useState(0);
@@ -27,18 +26,6 @@ export default function GameContainer({ gameId }) {
useEffect(() => {
if (!isGameComplete) return;
- // console.log(contextGameDatas);
- // const datas = {
- // user_locale: language,
- // user_country: country,
- // level_post_id: contextGameDatas.gameId,
- // level_score: score,
- // level_completion_time: currentTime,
- // };
- // postWordpressStatisticsData(datas);
- console.log("##############");
- // console.log(datas);
- console.log("##############");
}, [isGameComplete]);
// HANDLE CANVAS DRAGGING INTERACTIONS
@@ -59,7 +46,7 @@ export default function GameContainer({ gameId }) {
setIsDragging(false);
}
- if (!contextGameDatas) return;
+ if (!contextGameDatas) return