Clean up avatarHistory

This commit is contained in:
Natsumi
2025-10-30 14:42:27 +11:00
parent de1a5a91d7
commit 9ece7c0ddf
5 changed files with 19 additions and 22 deletions
+2 -2
View File
@@ -1151,7 +1151,7 @@ export const useFavoriteStore = defineStore('Favorite', () => {
}
}
if (!avatarInFavorites) {
if (!avatarStore.avatarHistory.has(id)) {
if (!avatarStore.avatarHistory.includes(id)) {
database.removeAvatarFromCache(id);
}
}
@@ -1292,7 +1292,7 @@ export const useFavoriteStore = defineStore('Favorite', () => {
}
}
if (!avatarInFavorites) {
if (!avatarStore.avatarHistory.has(avatarId)) {
if (!avatarStore.avatarHistory.includes(avatarId)) {
database.removeAvatarFromCache(avatarId);
}
}