From 7192f66420ac0626b8d2223d7da84ecf9bb604fb Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Fri, 23 Apr 2021 10:50:45 +0200 Subject: [PATCH] AW-2211 Update *fmHasPackage directive --- .../src/fm/components/has-package/has-package.directive.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/projects/common/src/fm/components/has-package/has-package.directive.ts b/projects/common/src/fm/components/has-package/has-package.directive.ts index 9e4389d..daec258 100644 --- a/projects/common/src/fm/components/has-package/has-package.directive.ts +++ b/projects/common/src/fm/components/has-package/has-package.directive.ts @@ -47,7 +47,6 @@ export class HasPackageDirective implements OnDestroy{ this.viewContainerRef$.clear(); const today = new Date(new Date(Date.now()).toUTCString()).setHours(0, 0, 0, 0); if (this.packages$[this.packageIdentifier$] && - this.packages$[this.packageIdentifier$].enabled && (this.packages$[this.packageIdentifier$].dataDate && new Date(this.packages$[this.packageIdentifier$].dataDate).setHours(0, 0, 0, 0) <= today) && (this.packages$[this.packageIdentifier$].dataEndDate == null || new Date(this.packages$[this.packageIdentifier$].dataEndDate).setHours(0, 0, 0, 0) >= today)) { this.viewContainerRef$.createEmbeddedView(this.thenTemplate$);