From 95f9a337435091188b02d4545b7507f47fef34cc Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 20 Jun 2018 01:06:41 +0300 Subject: fix visitor avatar refresh --- vnext/src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vnext/src') 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 {
{this.state.visitor.uid > 0 ?
- + { this.state.visitor.uname ? : }
: -- cgit v1.2.3