Skip to content

Commit 1c40325

Browse files
seobbangasst2412131
and
asst2412131
authored
fix: wrong code example (#26)
Co-authored-by: asst2412131 <[email protected]>
1 parent f52ae94 commit 1c40325

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

code/examples/login-start-page.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
function LoginStartPage() {
1616
useCheckLogin({
1717
onChecked: (status) => {
18-
if (status !== "LOGGED_IN") {
18+
if (status === "LOGGED_IN") {
1919
location.href = "/home";
2020
}
2121
},

en/code/examples/login-start-page.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The following `<LoginStartPage />` component contains logic to check if the user
1414
function LoginStartPage() {
1515
useCheckLogin({
1616
onChecked: (status) => {
17-
if (status !== "LOGGED_IN") {
17+
if (status === "LOGGED_IN") {
1818
location.href = "/home";
1919
}
2020
},

0 commit comments

Comments
 (0)