mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-25 06:16:40 +00:00
Merge branch 'dev' of https://github.com/fosrl/pangolin into dev
This commit is contained in:
@@ -59,13 +59,14 @@ export default function CertificateStatus({
|
||||
}
|
||||
};
|
||||
|
||||
const shouldShowRefreshButton = (status: string, updatedAt: string) => {
|
||||
const shouldShowRefreshButton = (status: string, updatedAt: number) => {
|
||||
return (
|
||||
status === "failed" ||
|
||||
status === "expired" ||
|
||||
(status === "requested" &&
|
||||
updatedAt &&
|
||||
new Date(updatedAt).getTime() < Date.now() - 5 * 60 * 1000)
|
||||
new Date(updatedAt * 1000).getTime() <
|
||||
Date.now() - 5 * 60 * 1000)
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user