1
0
mirror of https://github.com/uetchy/namae.git synced 2025-08-20 09:58:13 +09:00

fix: catch event error

This commit is contained in:
2021-10-07 23:54:21 +09:00
parent ad58f4f567
commit 2790dfb7ac
3 changed files with 1030 additions and 967 deletions

View File

@@ -213,13 +213,13 @@ const Suggestion: React.FC<{
}
function applyQuery(name: string): void {
sendAcceptSuggestionEvent();
onSubmit(name);
sendAcceptSuggestionEvent();
}
function onShuffleButtonClicked() {
sendShuffleSuggestionEvent();
shuffle();
sendShuffleSuggestionEvent();
}
useEffect(() => {