Skip to content

Commit

Permalink
[DataEntryTable] Await submitting word before exiting (#2577)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec authored Sep 14, 2023
1 parent 51243a5 commit 2b090a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DataEntry/DataEntryTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ export default function DataEntryTable(
);
if (!oldWord) {
// Existing word not found, so create a new word.
addNewEntry();
await addNewEntry();
} else {
// Found an existing word, so add a sense to it.
await updateWordWithNewEntry(oldWord.id);
Expand Down

0 comments on commit 2b090a4

Please sign in to comment.