diff --git a/libs/angular-accelerator/src/lib/components/data-sort-base/data-sort-base.ts b/libs/angular-accelerator/src/lib/components/data-sort-base/data-sort-base.ts index 8be9cab6..6084ec6d 100644 --- a/libs/angular-accelerator/src/lib/components/data-sort-base/data-sort-base.ts +++ b/libs/angular-accelerator/src/lib/components/data-sort-base/data-sort-base.ts @@ -83,8 +83,7 @@ export class DataSortBase { case FilterType.EQUAL: return value === filter.value case FilterType.TRUTHY: { - const isTruthy = value !== undefined && value !== '' - return filter.value ? isTruthy : !isTruthy + return filter.value ? !!value : !value } } })