chore: lint
This commit is contained in:
@@ -130,10 +130,10 @@ class ActivityManager {
|
|||||||
this.#likeCount--;
|
this.#likeCount--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index !== undefined) {
|
if (index === undefined) {
|
||||||
this.#activities.splice(index, 1);
|
|
||||||
} else {
|
|
||||||
this.#activities = this.#activities.filter(({ id }) => id !== activity.id);
|
this.#activities = this.#activities.filter(({ id }) => id !== activity.id);
|
||||||
|
} else {
|
||||||
|
this.#activities.splice(index, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
await deleteActivity({ id: activity.id });
|
await deleteActivity({ id: activity.id });
|
||||||
|
|||||||
Reference in New Issue
Block a user