From e7781786382c1ac57131c4655face0e1fa059ca2 Mon Sep 17 00:00:00 2001 From: ggurdin Date: Fri, 11 Oct 2024 15:41:01 -0400 Subject: [PATCH] in submitFeedback, only set currentActivity to null on error --- .../practice_activity/practice_activity_card.dart | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/pangea/widgets/practice_activity/practice_activity_card.dart b/lib/pangea/widgets/practice_activity/practice_activity_card.dart index ab4f59451..7e80e2aaa 100644 --- a/lib/pangea/widgets/practice_activity/practice_activity_card.dart +++ b/lib/pangea/widgets/practice_activity/practice_activity_card.dart @@ -248,12 +248,13 @@ class MessagePracticeActivityCardState extends State { 'record': currentCompletionRecord, }, ); + + // clear the current activity and record + currentActivity = null; + currentCompletionRecord = null; + widget.overlayController.exitPracticeFlow(); }); - - // clear the current activity and record - currentActivity = null; - currentCompletionRecord = null; } RepresentationEvent? get representation =>