Fix language detection sometimes kicking in *after* posting (#34193)

pull/3001/head
Claire 2025-03-17 17:49:09 +01:00 committed by GitHub
parent e30001bc80
commit 30e334b51a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -378,6 +378,7 @@ export const LanguageDropdown: React.FC = () => {
if (text.length > 20) {
debouncedGuess(text, setGuess);
} else {
debouncedGuess.cancel();
setGuess('');
}
}, [text, setGuess]);