Fixed the empty input submit bug in the DialogContext.jsx

This commit is contained in:
Mathias
2022-08-15 23:23:37 +02:00
parent 93c92d3c20
commit 43cfae205b

View File

@@ -42,6 +42,7 @@ const Dialog = ({dialog, setDialog}) => {
}
function submit() {
if (!dialog.description && !value) return;
setDialog();
hideTooltips(false);
if (dialog.onSuccess) dialog.onSuccess(value);