From 2b3704a3f96d0f3b4fa12483175cf3978c557565 Mon Sep 17 00:00:00 2001 From: Patrick Britton Date: Tue, 17 Feb 2026 10:43:55 -0600 Subject: [PATCH] fix: Update viewable_profile_screen to handle void return from followUser --- .../lib/screens/profile/viewable_profile_screen.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sojorn_app/lib/screens/profile/viewable_profile_screen.dart b/sojorn_app/lib/screens/profile/viewable_profile_screen.dart index 3abae25..cf12244 100644 --- a/sojorn_app/lib/screens/profile/viewable_profile_screen.dart +++ b/sojorn_app/lib/screens/profile/viewable_profile_screen.dart @@ -477,13 +477,13 @@ class _UnifiedProfileScreenState extends ConsumerState } }); } else { - final status = await apiService.followUser(_profile!.id); + await apiService.followUser(_profile!.id); if (!mounted) return; setState(() { - _followStatus = status; - _isFollowing = status == 'accepted'; + _followStatus = 'accepted'; + _isFollowing = true; _isFriend = _isFollowing && _isFollowedBy; - if (_stats != null && _isFollowing) { + if (_stats != null) { _stats = ProfileStats( posts: _stats!.posts, followers: _stats!.followers + 1,