mirror of
https://github.com/yashgo0018/maci-wrapper.git
synced 2026-05-04 03:00:44 -04:00
fixed a bug
This commit is contained in:
@@ -13,7 +13,7 @@ export function useAuthUserOnly({ inverted }: { inverted?: boolean }) {
|
||||
if (!inverted && !isRegistered) {
|
||||
permanentRedirect("/register");
|
||||
}
|
||||
}, [isRegistered]);
|
||||
}, [isRegistered, inverted]);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user