Skip to content

Commit

Permalink
Fix : 로컬에서 로그인 여부 조건문 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
JangGusWjd committed Jun 14, 2024
1 parent 5ce6944 commit a7d2ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router/RouterApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const MainLayout = () => {

const RouterApp = () => {
const authString = localStorage.getItem("auth");
const auth = authString ? JSON.parse(authString) : null;
const auth = authString ? JSON.parse(authString) : { isLoggedIn: false };

return (
<div>
Expand Down

0 comments on commit a7d2ba9

Please sign in to comment.