fixed order, image carousel

This commit is contained in:
@jcarymuhammedow
2026-02-05 19:01:57 +05:00
parent b546deeac0
commit bf5980e3b3
12 changed files with 392 additions and 155 deletions

View File

@@ -32,10 +32,12 @@ export default function AuthWrapper({
useEffect(() => {
if (isLoading) return;
// Only fetch guest token once on initial mount if no token exists
if (!TokenStorage.hasAnyToken() && !isGettingGuestToken) {
getGuestToken();
}
}, [isLoading, getGuestToken, isGettingGuestToken]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isLoading]); // Only run when isLoading changes (initial mount)
useEffect(() => {
if (isLoading || isGettingGuestToken) return;