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
|
|
@ -112,7 +112,9 @@ const accountId = computed(() => props.account?.id ?? null);
|
|||
const { relationship, isLoading } = useRelationship(client, accountId);
|
||||
|
||||
const follow = () => {
|
||||
if (!identity.value || !props.account || !relationship.value) return;
|
||||
if (!(identity.value && props.account && relationship.value)) {
|
||||
return;
|
||||
}
|
||||
relationship.value = {
|
||||
...relationship.value,
|
||||
following: true,
|
||||
|
|
@ -120,7 +122,9 @@ const follow = () => {
|
|||
};
|
||||
|
||||
const unfollow = () => {
|
||||
if (!identity.value || !props.account || !relationship.value) return;
|
||||
if (!(identity.value && props.account && relationship.value)) {
|
||||
return;
|
||||
}
|
||||
relationship.value = {
|
||||
...relationship.value,
|
||||
following: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue