Skip to content

Commit

Permalink
fix: sequence > 3 cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
rajuAhmed1705 committed Jul 10, 2024
1 parent 42a1172 commit a0158df
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,12 @@ class ParticipantDetailsView extends ConsumerWidget {
? baselineAdjustmentEnd
: totalCompletedDays;

final String interventionName =
sequence[i] == "A" ? interventions[0].name! : interventions[1].name!;
var sequenceIndex = i;
if (sequenceIndex > 3) sequenceIndex = i % 4;

final String interventionName = sequence[sequenceIndex] == "A"
? interventions[0].name!
: interventions[1].name!;

phases.add(
StudyPhase(
Expand Down

0 comments on commit a0158df

Please sign in to comment.