Forgot an await

This commit is contained in:
Madeline 2022-06-27 16:00:28 +10:00
parent 212301c62c
commit 0cadc8611f

View File

@ -150,7 +150,7 @@
}) })
}); });
const json = response.json(); const json = await response.json();
if (json.token) { if (json.token) {
window.localStorage.setItem("token", json.token); window.localStorage.setItem("token", json.token);
window.location.href = "/app"; window.location.href = "/app";