From 55d14d2adc9dd0f2c236a36a692ebb145b5a2104 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 11 Oct 2016 10:48:44 +0100 Subject: [PATCH] Fix registration null check --- src/Signup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Signup.js b/src/Signup.js index 483cbcab8c..8185addd6d 100644 --- a/src/Signup.js +++ b/src/Signup.js @@ -160,7 +160,7 @@ class Register extends Signup { if (flow) { console.log("Active flow => %s", JSON.stringify(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) { self.setStep('START'); throw err;