mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Fix json decode in getMe (#19)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
a490e1240b
commit
11a79d501a
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue