mirror of
https://github.com/mastodon/mastodon.git
synced 2025-03-31 14:40:11 +02:00
Fix language detection sometimes kicking in *after* posting (#34193)
This commit is contained in:
parent
e30001bc80
commit
30e334b51a
1 changed files with 1 additions and 0 deletions
|
@ -378,6 +378,7 @@ export const LanguageDropdown: React.FC = () => {
|
|||
if (text.length > 20) {
|
||||
debouncedGuess(text, setGuess);
|
||||
} else {
|
||||
debouncedGuess.cancel();
|
||||
setGuess('');
|
||||
}
|
||||
}, [text, setGuess]);
|
||||
|
|
Loading…
Add table
Reference in a new issue