Skip to content

Commit 609a986

Browse files
author
jacobscarter
committed
fixed error causing canenter function to call twice
1 parent 6c1ed6e commit 609a986

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wizard.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ angular.module('mgo-angular-wizard').directive('wizard', function() {
138138
defer.resolve(response);
139139
});
140140
return defer.promise;
141+
} else {
142+
return canEnter === true;
141143
}
142-
return step.canenter($scope.context) === true;
143144
}
144145

145146
function canExitStep(step, stepTo) {

0 commit comments

Comments
 (0)