feat: add webpush and sadhna tracker
This commit is contained in:
@@ -54,10 +54,9 @@ export function TextSelectionToolbar() {
|
||||
// after saving the user's last allowed bookmark.
|
||||
const [bookmarkCount, setBookmarkCount] = useState(0);
|
||||
useEffect(() => {
|
||||
if (!user) {
|
||||
setBookmarkCount(0);
|
||||
return;
|
||||
}
|
||||
// `limitReached` below already guards on `!!user`, so a stale count
|
||||
// while signed out is harmless — no need to reset it here.
|
||||
if (!user) return;
|
||||
let cancelled = false;
|
||||
const refetch = () => {
|
||||
bookmarks
|
||||
|
||||
Reference in New Issue
Block a user