Skip to content
This repository was archived by the owner on Oct 7, 2021. It is now read-only.

Commit fbba6fb

Browse files
committed
fix: isNil fix
1 parent 72e7ae7 commit fbba6fb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

projects/ngx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nll/ngx",
3-
"version": "4.0.1",
3+
"version": "4.0.2",
44
"private": false,
55
"peerDependencies": {
66
"@nll/datum": "^2.6.1",

projects/ngx/src/lib/datum/datum-either.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const objEq: Eq<unknown> = {
1616
};
1717
const datumEitherEq = getEq(getEqEither(objEq, objEq));
1818
const isNil = <T>(t: T | undefined | null): boolean =>
19-
t === null && t === undefined;
19+
t === null || t === undefined;
2020

2121
@Directive({
2222
selector: '[nllDatumEither]',

projects/ngx/src/lib/datum/datum.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const objEq: Eq<unknown> = {
1414
};
1515
const datumEq = getEq(objEq);
1616
const isNil = <T>(t: T | undefined | null): boolean =>
17-
t === null && t === undefined;
17+
t === null || t === undefined;
1818

1919
@Directive({
2020
selector: '[nllDatum]',

0 commit comments

Comments
 (0)