From 85a11c8b394b615e7677ff187e6f22021f683bbb Mon Sep 17 00:00:00 2001 From: jsangmeister Date: Wed, 30 Oct 2019 14:01:12 +0100 Subject: [PATCH] fixed error output to correctly display email validation error --- client/src/app/core/core-services/http.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/app/core/core-services/http.service.ts b/client/src/app/core/core-services/http.service.ts index f2770163d..e418a813b 100644 --- a/client/src/app/core/core-services/http.service.ts +++ b/client/src/app/core/core-services/http.service.ts @@ -171,7 +171,9 @@ export class HttpService { */ private processDetailResponse(response: DetailResponse): string { let message: string; - if (response.detail instanceof Array) { + if (response instanceof Array) { + message = response.join(' '); + } else if (response.detail instanceof Array) { message = response.detail.join(' '); } else { message = response.detail;