chore: trim currentText and originalInput before checking if they're different when settings IGC data (#3864)

This commit is contained in:
ggurdin 2025-09-03 16:39:42 -04:00 committed by GitHub
parent 8ea131bf5e
commit 296429928f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -109,7 +109,8 @@ class IgcController {
.timeout((const Duration(seconds: 10)));
// this will happen when the user changes the input while igc is fetching results
if (igcTextDataResponse.originalInput != choreographer.currentText) {
if (igcTextDataResponse.originalInput.trim() !=
choreographer.currentText.trim()) {
return;
}
// get ignored matches from the original igcTextData