Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore: swap to boolean cast instead of !!

Scott Wilsoncd09f03f0b90
diff --git a/backend/src/server/routes/v1/dashboard-router.ts b/backend/src/server/routes/v1/dashboard-router.ts
index a1d3320add..303c586219 100644
--- a/backend/src/server/routes/v1/dashboard-router.ts
+++ b/backend/src/server/routes/v1/dashboard-router.ts
@@ -23,7 +23,7 @@ const booleanSchema = z
.transform((value) => {
if (typeof value === "string") {
// ie if not empty, 0 or false, return true
- return !!value && Number(value) !== 0 && value.toLowerCase() !== "false";
+ return Boolean(value) && Number(value) !== 0 && value.toLowerCase() !== "false";
}
return value;