Fix UI Flicker in Dashboard

This commit is contained in:
Christian Owusu 2025-04-24 05:43:17 +00:00
parent 2adb2fc6a5
commit 6fe92646f4

View file

@ -151,7 +151,7 @@ export default function CreateKeyPage() {
if (redirectToLogin) {
window.location.href = (proxyBaseUrl || "") + "/sso/key/generate"
}
}, [token, authLoading])
}, [redirectToLogin])
useEffect(() => {
if (!token) {
@ -223,7 +223,7 @@ export default function CreateKeyPage() {
}
}, [accessToken, userID, userRole]);
if (authLoading) {
if (authLoading || redirectToLogin) {
return <LoadingScreen />
}