fix(web): apply logic fix from suggestion
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled

Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
This commit is contained in:
Joshua Horton 2026-05-14 22:48:44 +07:00 • committed by GitHub
parent 6ca785cd13
commit 5ced0d0fb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -279,7 +279,7 @@ export class TokenizationCorrector implements CorrectionSearchable<ReadonlyArray
const correctionIsThePredictable = correctableToUpdate == this._predictable;
const delistCorrectable = () => {
if(correctionIsThePredictable) {
if(!correctionIsThePredictable) {
// Lock the 'correctable' token now that either a valid correction for
// it has been found or all possible corrections are exhausted. We only
// consider a single correction for most of a tokenization's tokens,