Skip to content

Commit d46f754

Browse files
authored
fixing small typo
this only worked because the constant name and value match
1 parent 3c63116 commit d46f754

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

advanced/src/components/RootContainer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class RootContainer extends Component {
3939
}
4040

4141
refreshTokenFn(data = {}) {
42-
const token = data.AUTH_TOKEN
42+
const token = data[AUTH_TOKEN]
4343

4444
if (token) {
4545
localStorage.setItem(AUTH_TOKEN, token)
@@ -48,7 +48,7 @@ class RootContainer extends Component {
4848
}
4949

5050
this.setState({
51-
token: data.AUTH_TOKEN,
51+
token: data[AUTH_TOKEN],
5252
})
5353
}
5454

0 commit comments

Comments
 (0)