Skip to content

Commit fbedbbf

Browse files
authored
Merge pull request #53 from techvariable/bug/demo-auto-login
Bug/demo auto login
2 parents e40309d + 1e76390 commit fbedbbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/loginPage/login-form/login-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class LoginForm {
1313
@Prop() email: string = ''
1414
@Prop() password: string = ''
1515

16-
componentWillLoad() {
16+
componentDidLoad() {
1717
if (this.mode === 'demo') {
1818
this.autoSubmitter()
1919
}
@@ -26,7 +26,7 @@ export class LoginForm {
2626
email: this.email,
2727
password: this.password
2828
})
29-
// location.assign('/')
29+
location.assign('/')
3030
} catch (error) {
3131
throw Error("Form could not be submitted")
3232
}

0 commit comments

Comments
 (0)