/input should return empty string if canceled

This commit is contained in:
Cohee 2024-06-23 18:16:15 +03:00
parent bd9c10c2eb
commit 946994af22

View File

@ -1799,7 +1799,7 @@ async function inputCallback(args, prompt) {
await delay(1);
const result = await callGenericPopup(safeValue, POPUP_TYPE.INPUT, defaultInput, popupOptions);
await delay(1);
return String(result);
return String(result || '');
}
/**