From 28679bfba2d4160cd54fe368e5412aa622cd8c6e Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Mon, 25 Jun 2018 13:02:30 +0300
Subject: transform-class-properties
---
vnext/src/index.js | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
(limited to 'vnext/src/index.js')
diff --git a/vnext/src/index.js b/vnext/src/index.js
index 556745ff..2caaf5bb 100644
--- a/vnext/src/index.js
+++ b/vnext/src/index.js
@@ -20,7 +20,6 @@ const elClassBackground = 'header--background';
class App extends React.Component {
constructor(props) {
super(props);
- this.auth = this.auth.bind(this);
let params = qs.parse(window.location.search)
if (params.hash) {
window.localStorage.hash = params.hash
@@ -125,7 +124,7 @@ class App extends React.Component {
{user.uid > 0 ?
Post
:
-
+
}
@@ -216,7 +215,7 @@ class App extends React.Component {
)
}
- auth(data) {
+ auth = (data) => {
if (data) {
window.localStorage.hash = data;
fetch(`https://api.juick.com/users?hash=${data}`)
--
cgit v1.2.3