mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2024-11-26 07:05:32 +01:00
fix: possible type confusion
This commit is contained in:
parent
1edc6a1b2b
commit
5dc136138b
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user