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; return;
} }
localStorage.removeItem(`${resourceType}-${resourceId}-favorite`);
localStorage.removeItem(`${resourceType}-${resourceId}-progress`); localStorage.removeItem(`${resourceType}-${resourceId}-progress`);
console.log(`${resourceType}-${resourceId}-progress`);
setIsClearing(false); setIsClearing(false);
setIsConfirming(false); setIsConfirming(false);
onCleared(); onCleared();

Loading…
Cancel
Save