[SG-279] Fix unlock button not working after logging in through SSO (#1672)
This commit is contained in:
parent
3367736c7e
commit
f4f3e8c574
|
@ -55,7 +55,7 @@ export class LockComponent extends BaseLockComponent {
|
|||
await super.ngOnInit();
|
||||
this.onSuccessfulSubmit = async () => {
|
||||
const previousUrl = this.routerService.getPreviousUrl();
|
||||
if (previousUrl !== "/" && previousUrl.indexOf("lock") === -1) {
|
||||
if (previousUrl && previousUrl !== "/" && previousUrl.indexOf("lock") === -1) {
|
||||
this.successRoute = previousUrl;
|
||||
}
|
||||
this.router.navigateByUrl(this.successRoute);
|
||||
|
|
Loading…
Reference in New Issue