mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
refactor: ♻️ Fix linter errors
This commit is contained in:
parent
8a984abfb2
commit
f9433e259b
30 changed files with 235 additions and 157 deletions
|
|
@ -187,7 +187,7 @@ const signIn = async () => {
|
|||
const signOut = async (id?: string) => {
|
||||
loadingAuth.value = true;
|
||||
|
||||
if (!appData.value || !identity.value) {
|
||||
if (!(appData.value && identity.value)) {
|
||||
console.error("No app or identity data to sign out");
|
||||
return;
|
||||
}
|
||||
|
|
@ -208,7 +208,9 @@ const signOut = async (id?: string) => {
|
|||
identityToRevoke.tokens.access_token,
|
||||
identityToRevoke.tokens.access_token,
|
||||
)
|
||||
.catch(() => {});
|
||||
.catch(() => {
|
||||
// Do nothing
|
||||
});
|
||||
|
||||
if (id === identity.value.id) {
|
||||
identity.value = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue