Login:Src:Utils: some fixes
This commit is contained in:
parent
b2b8e4a063
commit
8a4f638e14
@ -446,7 +446,7 @@ export async function createUser(
|
|||||||
|
|
||||||
const res = await fetch(createUser);
|
const res = await fetch(createUser);
|
||||||
|
|
||||||
if (!res.ok) throw res;
|
if (!res.ok) throw await res.json();
|
||||||
|
|
||||||
const user = await res.json();
|
const user = await res.json();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user