Skip to content

Commit a3a0614

Browse files
committed
Fix #4828 showing incorrect certicificate value
1 parent 06b67ed commit a3a0614

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

frontend/src/components/Table/Formatter/CertificateFormatter.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,14 @@ interface Props {
55
certificate?: Certificate;
66
}
77
export function CertificateFormatter({ certificate }: Props) {
8-
return <T id={certificate ? "lets-encrypt" : "http-only"} />;
8+
let translation = "http-only";
9+
if (certificate) {
10+
translation = certificate.provider;
11+
if (translation === "letsencrypt") {
12+
translation = "lets-encrypt";
13+
} else if (translation === "other") {
14+
translation = "certificates.custom";
15+
}
16+
}
17+
return <T id={translation} />;
918
}

0 commit comments

Comments
 (0)