This commit is contained in:
2026-04-06 21:11:57 +03:30
parent b3fb4f4baf
commit 8990edf064
37 changed files with 140 additions and 59 deletions
@@ -43,10 +43,7 @@ export class ConsumerComponent {
if (!this.store.entity()?.license?.expires_at) {
return null;
}
if (
new Date().toDateString() >
new Date(this.store.entity()?.license?.expires_at || '').toDateString()
) {
if (new Date().getTime() > new Date(this.store.entity()?.license?.expires_at || '').getTime()) {
return licenseStatus.EXPIRED;
}
return licenseStatus.ACTIVE;