Skip to content
Snippets Groups Projects
Commit 75e7c09a authored by florimondmanca's avatar florimondmanca
Browse files

fix phone number field - again

parent 9adc6e26
No related branches found
No related tags found
1 merge request!26Release first-users version to production
...@@ -8,7 +8,7 @@ export class UserAdapter { ...@@ -8,7 +8,7 @@ export class UserAdapter {
firstName: item.first_name, firstName: item.first_name,
lastName: item.last_name, lastName: item.last_name,
email: item.email, email: item.email,
phone: item.phone_number, phoneNumber: item.phone_number,
}) })
} }
} }
...@@ -3,7 +3,7 @@ export interface UserInfo { ...@@ -3,7 +3,7 @@ export interface UserInfo {
email?: string; email?: string;
firstName?: string; firstName?: string;
lastName?: string; lastName?: string;
phone?: string; phoneNumber?: string;
} }
export class User { export class User {
...@@ -11,14 +11,14 @@ export class User { ...@@ -11,14 +11,14 @@ export class User {
email: string; email: string;
firstName: string; firstName: string;
lastName: string; lastName: string;
phone: string; phoneNumber: string;
constructor(opts: UserInfo) { constructor(opts: UserInfo) {
this.id = opts.id; this.id = opts.id;
this.email = opts.email; this.email = opts.email;
this.firstName = opts.firstName; this.firstName = opts.firstName;
this.lastName = opts.lastName; this.lastName = opts.lastName;
this.phone = opts.phone; this.phoneNumber = opts.phoneNumber;
} }
get fullName(): string { get fullName(): string {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment