Fix json decode in getMe (#19)

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
mrdrogdrog 2020-05-15 23:20:15 +02:00 committed by GitHub
parent a490e1240b
commit 11a79d501a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@ import {store} from "./store";
export const getAndSetUser = () => { export const getAndSetUser = () => {
getMe() getMe()
.then(expectResponseCode()) .then(expectResponseCode())
.then(response => response.json())
.then(user => { .then(user => {
if (!user) { if (!user) {
return; return;