2
2
mirror of https://github.com/mastodon/mastodon synced 2025-04-12 00:56:38 +02:00

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

This commit is contained in:
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

View File

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