Skip to content

Commit

Permalink
Merge pull request #38 from gnmyt/fixes/dialog-submit
Browse files Browse the repository at this point in the history
🐛 Bug mit leerem Input behoben
  • Loading branch information
gnmyt authored Aug 15, 2022
2 parents 064c510 + 43cfae2 commit 3396756
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 3396756

Please sign in to comment.