Add certificate expiry hook
This commit is contained in:
1 parent
94084acd86
commit
08d1a85f9a
2 files changed
+15
-5
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { logger } from "../../../../Utils/Logger";
|
||||
import { useEffect, useState } from "react";
|
||||
import { networkService } from "../../../../main";
|
||||
import { formatDateWithTz } from "../../../../Utils/DateUtils";
|
||||
import { formatDateWithTz } from "../../../../Utils/timeUtils";
|
||||
|
||||
const useCertificateFetch = ({
|
||||
monitor,
|
||||
@@ -38,7 +38,8 @@ const useCertificateFetch = ({
|
||||
setCertificateIsLoading(false);
|
||||
}
|
||||
};
|
||||
}, [authToken, monitorId]);
|
||||
fetchCertificate();
|
||||
}, [authToken, monitorId, certificateDateFormat, uiTimezone, monitor]);
|
||||
return { certificateExpiry, certificateIsLoading };
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user