Merge pull request #4774 from pangeachat/4773-igc-with-feedback-on-correct-answer-only

fix: allow reselection of incorrect IGC choices after correct choice …
This commit is contained in:
ggurdin 2025-12-02 16:05:52 -05:00 committed by GitHub
commit 6795730b97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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];