fix: use numeric timestamp comparison for cert expiry; extract PaginationBar to avoid unconditional useSearchParams subscription
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -82,7 +82,7 @@ export function scanAcmeCerts(): Map<string, AcmeCertInfo> {
|
||||
for (const domain of sanDomains) {
|
||||
// Keep the cert with the latest validTo for each domain
|
||||
const existing = map.get(domain);
|
||||
if (!existing || info.validTo > existing.validTo) {
|
||||
if (!existing || new Date(info.validTo).getTime() > new Date(existing.validTo).getTime()) {
|
||||
map.set(domain, info);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user