Skip to content

Commit

Permalink
fix(watched): do not mark as watched when prompt is canceled
Browse files Browse the repository at this point in the history
  • Loading branch information
seferturan authored and vladjerca committed Jan 9, 2025
1 parent 0eb3973 commit 56a41c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/client/src/lib/stores/useMarkAsWatched.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ export function useMarkAsWatched(
current.preferences.watch.action,
);

if (!watchedAtDate) {
return;
}

isMarkingAsWatched.set(true);

await markAsWatchedRequest({
Expand Down

0 comments on commit 56a41c4

Please sign in to comment.