aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
Diffstat (limited to 'vnext')
-rw-r--r--vnext/src/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js
index a5bfa1c5..0a8eb369 100644
--- a/vnext/src/index.js
+++ b/vnext/src/index.js
@@ -18,7 +18,7 @@ class App extends React.Component {
this.auth = this.auth.bind(this);
this.state = {
visitor: {
- uid: window.localStorage.uid || 0,
+ uid: Number(window.localStorage.uid) || 0,
hash: window.localStorage.hash || ''
},
headerClassName: ''
@@ -89,7 +89,7 @@ class App extends React.Component {
<div id="header_wrapper">
{this.state.visitor.uid > 0 ?
<div id="ctitle">
- <Avatar user={this.state.visitor} />
+ { this.state.visitor.uname ? <Avatar user={this.state.visitor} /> : <Icon name="ei-spinner" size="m" /> }
</div>
:
<div id="logo"><Link to="/">Juick</Link></div>