chore: apply arrow function
This commit is contained in:
parent
badc707777
commit
8670f70a3e
|
@ -69,9 +69,7 @@ export default class Header extends React.Component {
|
|||
Accept: 'application/json',
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
}).then(function(response) {
|
||||
return response.json();
|
||||
});
|
||||
}).then((response) => response.json());
|
||||
|
||||
storage.setItem('token', resp.token);
|
||||
storage.setItem('username', resp.username);
|
||||
|
|
Loading…
Reference in New Issue