summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/auth/auth.gate.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-05 23:35:41 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-05 23:35:41 +0100
commitb451f41ff837c3d47eb05a3da1e8c73f9a88f8b9 (patch)
treedee83c433cb6d672d5b46d598482f1d270aeacf8 /animism-align/frontend/app/views/auth/auth.gate.js
parentf6e6b1edbbb68bf6bf93a10deebd4cd55ffaff0f (diff)
ugh
Diffstat (limited to 'animism-align/frontend/app/views/auth/auth.gate.js')
-rw-r--r--animism-align/frontend/app/views/auth/auth.gate.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/animism-align/frontend/app/views/auth/auth.gate.js b/animism-align/frontend/app/views/auth/auth.gate.js
index 36d4af8..fe4ddbd 100644
--- a/animism-align/frontend/app/views/auth/auth.gate.js
+++ b/animism-align/frontend/app/views/auth/auth.gate.js
@@ -25,15 +25,12 @@ class AuthGate extends Component {
}
render() {
- if (this.props.user) {
+ if (this.props.logged_in) {
return this.props.children
}
return (
<div className='auth'>
- {this.props.logged_in
- ? <div className="login">Logging in...</div>
- : <AuthLogin onAuthenticate={this.load} />
- }
+ <AuthLogin onAuthenticate={this.load} />
</div>
)
}