Use Me-type

This commit is contained in:
Philipp Czora
2018-07-24 17:05:38 +02:00
parent 181a9e9786
commit b5f64429d4
6 changed files with 23 additions and 15 deletions

View File

@@ -205,7 +205,9 @@ export const fetchMe = () => {
return response.json();
})
.then(me => {
dispatch(fetchMeSuccess(me));
dispatch(
fetchMeSuccess({ userName: me.name, displayName: me.displayName })
);
})
.catch((error: Error) => {
if (error === UNAUTHORIZED_ERROR) {