Skip to content

Commit 7bca08f

Browse files
authored
Merge pull request #256 from MBTips/bug/App_tsx에서-accesstoken-접근시-uncaught-typeerror-발생하는-문제-개선-건
fix : App.tsx checkSession 호출 이전 조건문에 parsedAuth 추가
2 parents 21de5c3 + 769f0d9 commit 7bca08f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const App = () => {
8989

9090
useEffect(() => {
9191
initGA();
92-
if (parsedAuth.accessToken) checkSession();
92+
if (parsedAuth && parsedAuth.accessToken) checkSession();
9393
}, []);
9494

9595
return (

0 commit comments

Comments
 (0)