mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-02-14 01:28:39 -06:00
Fixed the empty input submit bug in the DialogContext.jsx
This commit is contained in:
@@ -42,6 +42,7 @@ const Dialog = ({dialog, setDialog}) => {
|
||||
}
|
||||
|
||||
function submit() {
|
||||
if (!dialog.description && !value) return;
|
||||
setDialog();
|
||||
hideTooltips(false);
|
||||
if (dialog.onSuccess) dialog.onSuccess(value);
|
||||
|
||||
Reference in New Issue
Block a user