fix issue with modifying fixed-length list

This commit is contained in:
sneurlax 2024-03-11 11:21:19 -05:00
parent 09bbdb5368
commit 10233550b1

View file

@ -78,7 +78,7 @@ class _FrostAttemptSignConfigViewState
myName = frostInfo.myName; myName = frostInfo.myName;
threshold = frostInfo.threshold; threshold = frostInfo.threshold;
participantsWithoutMe = frostInfo.participants; participantsWithoutMe = List.from(frostInfo.participants); // Copy so it isn't fixed-length.
myIndex = participantsWithoutMe.indexOf(frostInfo.myName); myIndex = participantsWithoutMe.indexOf(frostInfo.myName);
myPreprocess = ref.read(pFrostAttemptSignData.state).state!.preprocess; myPreprocess = ref.read(pFrostAttemptSignData.state).state!.preprocess;