Commit 28e84cf8 by Muhammad Usman

register firstname issue fixed

parent 12a9a8de
...@@ -45,7 +45,7 @@ export class RegisterComponent extends BaseComponent { ...@@ -45,7 +45,7 @@ export class RegisterComponent extends BaseComponent {
return this.hs.validateAllFormFields(this.form); return this.hs.validateAllFormFields(this.form);
} }
this.registerForm.firstname = this.registerForm.username.split('@').pop(); this.registerForm.firstname = this.registerForm.username.split('@')[1];
this.registerForm.lastname = this.registerForm.firstname; this.registerForm.lastname = this.registerForm.firstname;
this.registerForm.email = this.registerForm.username; this.registerForm.email = this.registerForm.username;
if (!this.registerForm.was_referred) { if (!this.registerForm.was_referred) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment