Merge pull request #5099 from jsangmeister/email-error-fix

Fixed error output of http service to correctly display email validation error
This commit is contained in:
Finn Stutzenstein 2019-10-30 15:22:19 +01:00 committed by GitHub
commit 0ab46ed955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;