From 41b0cb6d3ee57e6255569f74bc0e8eb4931dbe88 Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Thu, 12 Oct 2023 01:10:09 +0800 Subject: [PATCH] Fix auth in AuthRoute --- src/AuthRoute.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AuthRoute.tsx b/src/AuthRoute.tsx index 725136c..88565bc 100644 --- a/src/AuthRoute.tsx +++ b/src/AuthRoute.tsx @@ -13,7 +13,7 @@ const AuthRoute = () => { document.title = `${handle?.titlePrefix ?? ''}${ handle?.title ? handle?.title : PRODUCTION_NAME }${handle?.titlePostfix ?? ''}` - if (handle?.auth && !isLogin) { + if (matches.some(({ handle }) => (handle as RouteHandle)?.auth) && !isLogin) { return (