Skip to content

Commit 61bdd48

Browse files
authored
fix error handling word detection (#26)
1 parent f792a60 commit 61bdd48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Components/ActionsReactions/AddNewWord/AddNewWord.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ export const AddNewWord = (props: any) => {
4646
const handleClose = () => setOpen(false);
4747

4848
const save = () => {
49-
if (props.newEvent.length !== 0 && props.newEvent.source && props.newEvent.source.name) {
49+
console.log(props.newEvent)
50+
if (props.newEvent.keywords.length !== 0 && props.newEvent.source && props.newEvent.source.name) {
5051
props.addNewEvent(props.newEvent);
5152
handleClose();
5253
} else {

0 commit comments

Comments
 (0)