mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-20 14:01:25 +02:00
Fix bug where riot would keep requesting tokens
We 'activeStage' is an object: we need to check the type
This commit is contained in:
parent
79011886a8
commit
acf76c2e28
@ -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) {
|
if (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…
x
Reference in New Issue
Block a user