fix: add product
This commit is contained in:
@@ -14,8 +14,6 @@ import { getLocalizedUrl } from '../utils/i18n'
|
||||
export default function AuthGuard({ children, locale }: ChildrenType & { locale: Locale }) {
|
||||
const { isAuthenticated } = useAuth()
|
||||
|
||||
console.log('isAuthenticated', isAuthenticated)
|
||||
|
||||
useEffect(() => {
|
||||
if (!isAuthenticated) {
|
||||
redirect(getLocalizedUrl('/login', locale))
|
||||
|
||||
Reference in New Issue
Block a user