hotfix for span card bug

This commit is contained in:
ggurdin 2024-06-07 15:12:17 -04:00
parent 6a3d04707e
commit 3f803a5cc3

View file

@ -61,7 +61,7 @@ class SpanCardState extends State<SpanCard> {
SpanChoice? get selectedChoice {
if (selectedChoiceIndex == null ||
widget.scm.pangeaMatch?.match.choices == null ||
widget.scm.pangeaMatch!.match.choices!.length >= selectedChoiceIndex!) {
widget.scm.pangeaMatch!.match.choices!.length <= selectedChoiceIndex!) {
return null;
}
return widget.scm.pangeaMatch?.match.choices?[selectedChoiceIndex!];