Skip to content

Commit a2ec36f

Browse files
fix(ui): Empty string as input not handled
1 parent 98b93d8 commit a2ec36f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/userscript/source/ui/components/UiComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export abstract class UiComponent extends EventTarget {
6363

6464
static promptLimit(text: string, defaultValue: string): number | null {
6565
const value = window.prompt(text, defaultValue);
66-
if (value === null) {
66+
if (value === null || value === "") {
6767
return null;
6868
}
6969

0 commit comments

Comments
 (0)