Don't mutate flows
This commit is contained in:
parent
30cb9f6d15
commit
e13040a49e
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ export class Registration {
|
|||
constructor(hsApi: HomeServerApi, accountDetails: AccountDetails, flowSelector?: FlowSelector) {
|
||||
this._hsApi = hsApi;
|
||||
this._accountDetails = accountDetails;
|
||||
this._flowSelector = flowSelector ?? (flows => flows.pop());
|
||||
this._flowSelector = flowSelector ?? (flows => flows[0]);
|
||||
}
|
||||
|
||||
async start(): Promise<BaseRegistrationStage> {
|
||||
|
|
Reference in a new issue