fix(epg-list): normalize days value before subtracting

This commit is contained in:
4gray committed 2025-11-08 23:02:15 +01:00
1 parent e06c154e0f
commit 60a06c2b60
1 file changed
+4 -1
@@ -92,7 +92,10 @@ export class EpgListComponent implements OnInit {
active?.tvg?.rec || active?.timeshift || active?.catchup?.days
);
}),
map((value) => moment().subtract(value, 'days').toISOString())
map((value) => {
const days = Number(value ?? 0) || 0;
return moment().subtract(days, 'days').toISOString();
})
);
private readonly selectedDate$ = new BehaviorSubject<string>(