fix: possible type confusion

This commit is contained in:
Rick van Lieshout 2024-05-20 15:34:38 +02:00
parent 1edc6a1b2b
commit 5dc136138b

View File

@ -177,7 +177,7 @@ export const addSkippedArtists = (artists: string[]) => {
export const removeSkippedArtists = (artists: string[]) => {
const { skippedArtists } = settings;
const previousStoreValue = settingsStore.get<string, string[]>(skippedArtists);
const filteredArtists = previousStoreValue.filter((value) => !artists.includes(value));
const filteredArtists = previousStoreValue.filter((value) => ![...artists].includes(value));
settingsStore.set(skippedArtists, filteredArtists);
};