Skip to content

Commit

Permalink
Fixed the empty input submit bug in the DialogContext.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
gnmyt committed Aug 15, 2022
1 parent 93c92d3 commit 43cfae2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/common/contexts/Dialog/DialogContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const Dialog = ({dialog, setDialog}) => {
}

function submit() {
if (!dialog.description && !value) return;
setDialog();
hideTooltips(false);
if (dialog.onSuccess) dialog.onSuccess(value);
Expand Down

0 comments on commit 43cfae2

Please sign in to comment.