Clear favorite on logout

pull/4108/head
Kamran Ahmed 1 year ago
parent b525c5efb4
commit 680dbee6eb
  1. 3
      src/components/Activity/ResourceProgress.tsx

@ -47,8 +47,9 @@ export function ResourceProgress(props: ResourceProgressType) {
return;
}
localStorage.removeItem(`${resourceType}-${resourceId}-favorite`);
localStorage.removeItem(`${resourceType}-${resourceId}-progress`);
console.log(`${resourceType}-${resourceId}-progress`);
setIsClearing(false);
setIsConfirming(false);
onCleared();

Loading…
Cancel
Save