fix(watchlist): remove stray unary plus in setIsWatchlisted

This commit is contained in:
Gauvain
2026-07-04 18:21:30 +02:00
parent 03b2aec931
commit 75f30842f5

View File

@@ -39,7 +39,7 @@ export const useWatchlist = (item: BaseItemDto) => {
const setIsWatchlisted = useCallback(
(value: boolean | null | undefined) => {
if (watchlistKey && typeof value === "boolean") {
+setWatchlist((prev) => ({ ...prev, [watchlistKey]: value }));
setWatchlist((prev) => ({ ...prev, [watchlistKey]: value }));
}
},
[watchlistKey, setWatchlist],