[Glitch] Fix language detection sometimes kicking in *after* posting

Port 30e334b51a4e7add05401895bff5a2ea4a97e0bd to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire 2025-03-17 17:49:09 +01:00
parent d2c4f69148
commit 79123af3dd

View File

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