feat: simplify error handling in login and registration pages, add install prompt component, and update favicon and icons
This commit is contained in:
@@ -36,7 +36,7 @@ export function FollowButton({
|
||||
setIsFollowing(!isFollowing);
|
||||
await action(username, token);
|
||||
router.refresh(); // Re-fetch server component data to get the latest follower count etc.
|
||||
} catch (err) {
|
||||
} catch {
|
||||
// Revert on error
|
||||
setIsFollowing(isFollowing);
|
||||
toast.error(`Failed to ${isFollowing ? "unfollow" : "follow"} user.`);
|
||||
|
Reference in New Issue
Block a user