diff --git a/client/pages/GameForge.tsx b/client/pages/GameForge.tsx index bf227993..43c420c6 100644 --- a/client/pages/GameForge.tsx +++ b/client/pages/GameForge.tsx @@ -14,11 +14,12 @@ import { import { useNavigate } from "react-router-dom"; import { useEffect, useState, useRef } from "react"; import LoadingScreen from "@/components/LoadingScreen"; -import { aethexToast } from "@/lib/aethex-toast"; +import { useArmToast } from "@/hooks/use-arm-toast"; export default function GameForge() { const navigate = useNavigate(); const { theme } = useArmTheme(); + const armToast = useArmToast(); const [isLoading, setIsLoading] = useState(true); const toastShownRef = useRef(false); @@ -26,13 +27,13 @@ export default function GameForge() { const timer = setTimeout(() => { setIsLoading(false); if (!toastShownRef.current) { - aethexToast.system("GameForge engine initialized"); + armToast.system("GameForge engine initialized"); toastShownRef.current = true; } }, 900); return () => clearTimeout(timer); - }, []); + }, [armToast]); if (isLoading) { return (