chore: apply arrow function

This commit is contained in:
Juan Picado @jotadeveloper 2018-03-24 10:07:55 +01:00
parent badc707777
commit 8670f70a3e
No known key found for this signature in database
GPG Key ID: 18AC54485952D158
1 changed files with 1 additions and 3 deletions

View File

@ -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);