Unfollow tool for Bluesky

remove preview button while fetching follows

Changed files
+6 -4
src
+6 -4
src/App.tsx
···
});
}
setProgress(progress() + 1);
-
if (progress() == followCount()) setFollowRecords(tmpFollows);
});
}
};
···
}
setFollowRecords([]);
-
setProgress(0);
-
setFollowCount(0);
setNotice(
`Unfollowed ${writes.length} account${writes.length > 1 ? "s" : ""}`,
);
···
return (
<div class="flex flex-col items-center">
-
<Show when={!followRecords.length}>
<button
type="button"
onclick={() => fetchHiddenAccounts()}
···
});
}
setProgress(progress() + 1);
+
if (progress() == followCount()) {
+
setFollowRecords(tmpFollows);
+
setProgress(0);
+
setFollowCount(0);
+
}
});
}
};
···
}
setFollowRecords([]);
setNotice(
`Unfollowed ${writes.length} account${writes.length > 1 ? "s" : ""}`,
);
···
return (
<div class="flex flex-col items-center">
+
<Show when={followCount() === 0 && !followRecords.length}>
<button
type="button"
onclick={() => fetchHiddenAccounts()}