exit getPracticeActivity early if finished is true

This commit is contained in:
ggurdin 2024-10-11 15:40:18 -04:00
parent c72d2480b4
commit fe6836d627
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -118,6 +118,11 @@ class PracticeGenerationController {
requestModel: req,
);
if (res.finished) {
debugPrint('Activity generation finished');
return null;
}
// if the server points to an existing event, return that event
if (res.existingActivityEventId != null) {
final Event? existingEvent =