mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26: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 = () => {
|
||||
getMe()
|
||||
.then(expectResponseCode())
|
||||
.then(response => response.json())
|
||||
.then(user => {
|
||||
if (!user) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue