From 729d1d6b41917cf8972532bccd493439ce9ce435 Mon Sep 17 00:00:00 2001 From: Kelrap <99418823+Kelrap@users.noreply.github.com> Date: Thu, 31 Jul 2025 13:29:51 -0400 Subject: [PATCH] Reenable try again button for activity search timeout (#3599) --- .../activity_suggestions_area.dart | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/lib/pangea/activity_suggestions/activity_suggestions_area.dart b/lib/pangea/activity_suggestions/activity_suggestions_area.dart index 8a4e8d023..91df3e437 100644 --- a/lib/pangea/activity_suggestions/activity_suggestions_area.dart +++ b/lib/pangea/activity_suggestions/activity_suggestions_area.dart @@ -213,19 +213,17 @@ class ActivitySuggestionsAreaState extends State { ? L10n.of(context).activitySuggestionTimeoutMessage : L10n.of(context).errorFetchingActivitiesMessage, ), - if (!_timeout) - ElevatedButton( - onPressed: _setActivityItems, - style: ElevatedButton.styleFrom( - backgroundColor: theme.colorScheme.primaryContainer, - foregroundColor: - theme.colorScheme.onPrimaryContainer, - padding: const EdgeInsets.symmetric( - horizontal: 12.0, - ), + ElevatedButton( + onPressed: _setActivityItems, + style: ElevatedButton.styleFrom( + backgroundColor: theme.colorScheme.primaryContainer, + foregroundColor: theme.colorScheme.onPrimaryContainer, + padding: const EdgeInsets.symmetric( + horizontal: 12.0, ), - child: Text(L10n.of(context).tryAgain), ), + child: Text(L10n.of(context).tryAgain), + ), ], ), )