exit getPracticeActivity early if finished is true
This commit is contained in:
parent
c72d2480b4
commit
fe6836d627
1 changed files with 5 additions and 0 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue