Commit 70716996 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #17436 TIME 0:10 add summay parameter + check emptiness

parent ec0ed316
......@@ -6,6 +6,7 @@ import { NgForm } from '@angular/forms';
import { catchError, tap } from 'rxjs/operators';
import { of } from 'rxjs';
import { OtpService } from '../otp.service';
import { FunctionsService } from '../../../../service/functions.service';
@Component({
selector: 'app-otp-yousign',
......@@ -38,7 +39,8 @@ export class OtpYousignComponent implements OnInit {
public http: HttpClient,
private translate: TranslateService,
public notificationService: NotificationService,
public otpService: OtpService
public otpService: OtpService,
private functions: FunctionsService
) {
this.otpService.catchEvent().subscribe(async (res) => {
if (res.id === 'connector') {
......@@ -75,7 +77,9 @@ export class OtpYousignComponent implements OnInit {
}
getData() {
this.formatPhone();
if (!this.functions.empty(this.otp.phone)) {
this.formatPhone();
}
return this.otp;
}
......
......@@ -225,7 +225,7 @@ export class VisaWorkflowComponent implements OnInit {
getUserInfo(userId: number) {
return new Promise((resolve) => {
this.http.get(`../rest/users/${userId}`).pipe(
this.http.get(`../rest/users/${userId}?mode=summary`).pipe(
tap((data: any) => {
resolve({
firstname: data.user.firstname,
......
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