fix(dashboard): add missing return after error handling
This commit is contained in:
parent
f2191c1cf6
commit
494bd8aab3
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user