Skip to content
Browse files

Merge pull request #64 from danyshaanan/fix_63

Fix crash on space in question without answers (#63)
2 parents deae098 + daf409f commit c75c0e34c97bd2ec107f9f14b5de773030ffa0ad @santinic 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 c75c0e3

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