From 8670f70a3e82732153778e2f085feed543a8e708 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 24 Mar 2018 10:07:55 +0100 Subject: [PATCH] chore: apply arrow function --- src/webui/src/components/Header/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/webui/src/components/Header/index.js b/src/webui/src/components/Header/index.js index 294deab80..7aec24afa 100644 --- a/src/webui/src/components/Header/index.js +++ b/src/webui/src/components/Header/index.js @@ -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);