♻️ set cert error if initial value is null

This commit is contained in:
Fred KISSIE
2026-07-30 21:53:31 +01:00
parent c8c8d74452
commit 47522b7e3a
+2 -1
View File
@@ -111,7 +111,8 @@ export function useCertificate({
let certError: string | null = null;
if (restartCert.isError) {
certError = "Failed to restart";
} else if (isError) {
} else if (isError || initialCertValue === null) {
// Null value means failed to get the certificate
certError = "Failed";
}