Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Improve getObjectFromSeconds func
x03220557c667f0b15d
diff --git a/frontend/src/helpers/datetime.ts b/frontend/src/helpers/datetime.tsindex bb258878de..3dd57cf522 100644--- a/frontend/src/helpers/datetime.ts+++ b/frontend/src/helpers/datetime.ts@@ -99,12 +99,8 @@ export const getObjectFromSeconds = (return { value: totalSeconds / SECONDS_IN_MINUTE, unit: "m" };}- if (isUnitActive("s") && totalSeconds >= 1) {- return { value: totalSeconds, unit: "s" };- }-return {- value: 0,+ value: totalSeconds,unit: "s"};};