Permalink
Browse files

Bug fix on AMAZON.RepeatIntent of Cookbook labs Recipe

Since 'AMAZON.NextIntent' will do `incrementStep.call(this, 1);` every time it handles request, when there is no `this.attributes['currentStep']` stored, we probably should start with 0, rather than 1.
  • Loading branch information...
antonio081014 committed Dec 9, 2017
1 parent 8ea670d commit eeb95eb209adfa55909b2ccb583b7e1181aba1de
Showing with 1 addition and 1 deletion.
  1. +1 −1 labs/Recipe/src/index.js
View
@@ -157,7 +157,7 @@
},
'AMAZON.RepeatIntent': function () {
if (!this.attributes['currentStep'] ) {
this.attributes['currentStep'] = 1;
this.attributes['currentStep'] = 0;
} else {
this.attributes['currentStep'] = this.attributes['currentStep'] - 1;
}

0 comments on commit eeb95eb

Please sign in to comment.