From acf76c2e28a18499324ac0cf51557c16d3e091fe Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 11 Oct 2016 10:18:40 +0100 Subject: [PATCH] Fix bug where riot would keep requesting tokens We 'activeStage' is an object: we need to check the type --- src/Signup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Signup.js b/src/Signup.js index eaf1906059..483cbcab8c 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) { + if (flowStage != self.activeStage.type) { return self._startStage(client, flowStage).catch(function(err) { self.setStep('START'); throw err;