mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-07-05 12:02:55 +01:00
fix(watchlist): remove stray unary plus in setIsWatchlisted
This commit is contained in:
@@ -39,7 +39,7 @@ export const useWatchlist = (item: BaseItemDto) => {
|
|||||||
const setIsWatchlisted = useCallback(
|
const setIsWatchlisted = useCallback(
|
||||||
(value: boolean | null | undefined) => {
|
(value: boolean | null | undefined) => {
|
||||||
if (watchlistKey && typeof value === "boolean") {
|
if (watchlistKey && typeof value === "boolean") {
|
||||||
+setWatchlist((prev) => ({ ...prev, [watchlistKey]: value }));
|
setWatchlist((prev) => ({ ...prev, [watchlistKey]: value }));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[watchlistKey, setWatchlist],
|
[watchlistKey, setWatchlist],
|
||||||
|
|||||||
Reference in New Issue
Block a user