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

This commit is contained in:
Claire authored and GitHub committed 2025-03-17 16:49:09 +00:00
1 parent e30001bc80
commit 30e334b51a
1 file changed
+1
@@ -378,6 +378,7 @@ export const LanguageDropdown: React.FC = () => {
if (text.length > 20) {
debouncedGuess(text, setGuess);
} else {
debouncedGuess.cancel();
setGuess('');
}
}, [text, setGuess]);