Skip to content
Browse files

Fix crash on space in question without answers (#63)

1 parent deae098 commit daf409ff708169d0b0bcc7ef104609f2405dfba7 @danyshaanan danyshaanan committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/how2.js
View
4 lib/how2.js
@@ -117,7 +117,9 @@ function main(text, lang, remember) {
ui.showGoogleList(links, titles, selectedGoogleItemCallback(links, function(answers) {
ui.showAnswers(answers, function(index) {
var selected = answers[index];
- ui.showAnswer(selected);
+ if (selected) {
+ ui.showAnswer(selected);
+ }
});
}));
}

0 comments on commit daf409f

Please sign in to comment.
Something went wrong with that request. Please try again.