mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
fix: method hasType in service errors.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user