Fix registration
null check
This commit is contained in:
parent
ea69129d8c
commit
55d14d2adc
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ class Register extends Signup {
|
||||||
if (flow) {
|
if (flow) {
|
||||||
console.log("Active flow => %s", JSON.stringify(flow));
|
console.log("Active flow => %s", JSON.stringify(flow));
|
||||||
var flowStage = self.firstUncompletedStage(flow);
|
var flowStage = self.firstUncompletedStage(flow);
|
||||||
if (flowStage != self.activeStage.type) {
|
if (!self.activeStage || flowStage != self.activeStage.type) {
|
||||||
return self._startStage(client, flowStage).catch(function(err) {
|
return self._startStage(client, flowStage).catch(function(err) {
|
||||||
self.setStep('START');
|
self.setStep('START');
|
||||||
throw err;
|
throw err;
|
||||||
|
|
Loading…
Reference in a new issue