aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-01-27 14:13:32 +0100
committerlonkaars <l.leblansch@gmail.com>2021-01-27 14:13:32 +0100
commit6a4a2b900994f83ee284de7be10fbd57dc1b6cb3 (patch)
treeebfaaf4c9cc0589d1559f207397163ed094a325d
parent40098fd7f262ee4399b490e2fb7f5448bca948c5 (diff)
fix home page log in
-rw-r--r--pages/index.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/index.tsx b/pages/index.tsx
index 9c56f52..bd7100e 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -68,7 +68,7 @@ export default class HomePage extends Component {
})
.then(request => this.setState({
info: request.data,
- loggedIn: request.data == {}
+ loggedIn: request.status == 200
}))
.catch(console.log);
}