Commit 294148ec authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #16956 TIME 0:05 auto phone replacement for shortcut

parent 75c69f50
...@@ -158,8 +158,8 @@ export class CreateExternalUserComponent implements OnInit { ...@@ -158,8 +158,8 @@ export class CreateExternalUserComponent implements OnInit {
} }
} }
formatPhone(item: any) { formatPhone() {
if (item.length > 1 && item[0] === '0') { if (this.userOTP.phone.length > 1 && this.userOTP.phone[0] === '0') {
this.userOTP.phone = this.userOTP.phone.replace('0', '+33'); this.userOTP.phone = this.userOTP.phone.replace('0', '+33');
} }
} }
...@@ -230,6 +230,7 @@ export class CreateExternalUserComponent implements OnInit { ...@@ -230,6 +230,7 @@ export class CreateExternalUserComponent implements OnInit {
this.userOTP.lastname = item.lastname; this.userOTP.lastname = item.lastname;
this.userOTP.email = item.email; this.userOTP.email = item.email;
this.userOTP.phone = item.phone; this.userOTP.phone = item.phone;
this.formatPhone();
} }
getRegexPhone() { getRegexPhone() {
......
Supports Markdown
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