fix: allow reselection of incorrect IGC choices after correct choice selected

This commit is contained in:
ggurdin 2025-12-02 16:05:21 -05:00
parent c47d8898de
commit f3b98aa35e
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -98,15 +98,6 @@ class SpanData {
return -1;
}
// if user ever selected the correct choice, automatically select it
final selectedCorrectIndex = choices!.indexWhere((choice) {
return choice.selected && choice.isBestCorrection;
});
if (selectedCorrectIndex != -1) {
return selectedCorrectIndex;
}
SpanChoice? mostRecent;
for (int i = 0; i < choices!.length; i++) {
final choice = choices![i];