Skip to content

Commit 8a5b7b3

Browse files
thyttanbobrippling
andauthored
E_showPrompt_Q3: permit passing falsy values
Author: @bobrippling Co-authored-by: Rob Pilling <[email protected]>
1 parent d9f3494 commit 8a5b7b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/js/banglejs/E_showPrompt_Q3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
draw(i); // highlighted button
6565
g.flip(); // write to screen
6666
E.showPrompt(); // remove
67-
if (e.type===2 /*long press*/ && options.buttonsLong && options.buttonsLong[btns[i]])
67+
if (e.type===2 /*long press*/ && options.buttonsLong && btns[i] in options.buttonsLong)
6868
resolve(options.buttonsLong[btns[i]]);
6969
else
7070
resolve(options.buttons[btns[i]]);

0 commit comments

Comments
 (0)