fix(dashboard): add missing return after error handling

This commit is contained in:
spiral 2022-09-20 15:08:42 +00:00
parent f2191c1cf6
commit 494bd8aab3
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -17,6 +17,7 @@
res = await api().private.discord.callback.post({ data: { code: params.get("code"), redirect_domain: window.location.origin } });
} catch(e) {
text = "Error: " + e.data.error;
return;
}
localStorage.setItem("pk-token", res.token);
localStorage.setItem("pk-user", JSON.stringify(res.system));