Make navigation simpler

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-08-23 17:00:41 +05:30
parent c9319c7c38
commit ef4db4abab

View file

@ -53,8 +53,7 @@ export class CompleteSSOLoginViewModel extends ViewModel {
return; return;
} }
if (!loginOptions.token) { if (!loginOptions.token) {
const path = this.navigation.pathFrom([this.navigation.segment("session")]); this.navigation.push("session");
this.navigation.applyPath(path);
return; return;
} }
const status = await this._attemptLogin(loginOptions.token(this._loginToken)); const status = await this._attemptLogin(loginOptions.token(this._loginToken));