diff --git a/src/pages/certificate/List.tsx b/src/pages/certificate/List.tsx index e7d13dd297848e97864b0287f96e12da8d4754a4..7c435678c92e0b024e525aabe20be95beebd2cc8 100644 --- a/src/pages/certificate/List.tsx +++ b/src/pages/certificate/List.tsx @@ -122,7 +122,7 @@ export default function CertificateList() { <div className="flex justify-between space-x-4"> <div className="space-y-1"> <p className="text-sm font-semibold"> - {certificate.dnsChallenge === null ? ( + {certificate.challenge === 'http' ? ( <Badge variant="secondary" className="mr-2"> HTTP </Badge> @@ -145,7 +145,7 @@ export default function CertificateList() { <TableCell>{certificate.expiresAt}</TableCell> <TableCell> <div className="flex justify-center items-center gap-1"> - {certificate.dnsChallenge === null ? ( + {certificate.challenge === 'http' ? ( <Badge variant="secondary"> <Globe className="h-3 w-3" /> HTTP diff --git a/src/types/certificate.ts b/src/types/certificate.ts index f2dbe0c341eae8b7af658469b45bf089c3af048e..506af71bcc2f60eb11884e266f1d6bc6f977f743 100644 --- a/src/types/certificate.ts +++ b/src/types/certificate.ts @@ -5,5 +5,5 @@ export interface Certificate { createdAt: string; updatedAt: string; expiresAt: string; - dnsChallenge: string | null; + challenge: string; }