fix: method hasType in service errors.

This commit is contained in:
Ahmed Bouhuolia
2020-09-26 16:46:05 +02:00
parent 933afb37bf
commit 9f315ca657
5 changed files with 15 additions and 5 deletions

View File

@@ -10,6 +10,6 @@ export default class ServiceErrors {
hasType(errorType: string) {
return this.errors
.filter((error: ServiceError) => error.errorType === errorType);
.some((error: ServiceError) => error.errorType === errorType);
}
}