Skip to content

Commit

Permalink
fix(pipes): stop .toString on null values
Browse files Browse the repository at this point in the history
  • Loading branch information
realappie committed Sep 2, 2019
1 parent c60647b commit a8e5900
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/ngx-intl/src/lib/pipes/intl-date.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class IntlDatePipe implements PipeTransform, OnDestroy {

private lastOutput: string = null;

private lastInput: [Date|string, Intl.DateTimeFormatOptions] = null;
private lastInput: [Date|string, Intl.DateTimeFormatOptions] = [null, null];

private stop$ = new Subject();

Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-intl/src/lib/pipes/intl-number.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class IntlNumberPipe implements PipeTransform, OnDestroy {

private lastOutput: string = null;

private lastInput: [number, Intl.NumberFormatOptions] = null;
private lastInput: [number, Intl.NumberFormatOptions] = [null, null];

private stop$ = new Subject();

Expand Down

0 comments on commit a8e5900

Please sign in to comment.