fixed error output to correctly display email validation error

This commit is contained in:
jsangmeister 2019-10-30 14:01:12 +01:00
parent 98a7d4dcdf
commit 85a11c8b39

View File

@ -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;