Skip to content

Commit 5328470

Browse files
committed
Allow participants to include the same name twice
1 parent 7b54f6e commit 5328470

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/VisualPairCoding/VisualPairCoding.AvaloniaUI/RunSessionForm.axaml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private async void ChooseAnotherPairAndStartNewTurn()
109109
_currentParticipant = 0;
110110
}
111111

112-
ChooseRandomNavigatorFromListWithout(_pairCodingSession.Participants[_currentParticipant]);
112+
ChooseRandomNavigatorFromListWithout();
113113

114114
activeParticipnat.Text = _pairCodingSession.Participants[_currentParticipant];
115115

@@ -128,10 +128,10 @@ private async void ChooseAnotherPairAndStartNewTurn()
128128
Topmost = true;
129129
}
130130

131-
private void ChooseRandomNavigatorFromListWithout(string currentDriver)
131+
private void ChooseRandomNavigatorFromListWithout()
132132
{
133133
var potentialNavigators =
134-
_pairCodingSession.Participants.Where(x => !(x == currentDriver)).ToArray();
134+
_pairCodingSession.Participants.ToArray();
135135

136136
var randomEntry = potentialNavigators[random.Next(0, potentialNavigators.Length)];
137137
recommendedNavigator.Text = randomEntry;

0 commit comments

Comments
 (0)