Skip to content

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

style(pam): reformat refetchInterval ternary

Bernie Gandine05feb78820b
diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/PamSessionByIDPage.tsx b/frontend/src/pages/pam/PamSessionsByIDPage/PamSessionByIDPage.tsx
index 46692b5591..e7811319f8 100644
--- a/frontend/src/pages/pam/PamSessionsByIDPage/PamSessionByIDPage.tsx
+++ b/frontend/src/pages/pam/PamSessionsByIDPage/PamSessionByIDPage.tsx
@@ -32,7 +32,9 @@ const Page = () => {
const { data: session } = useGetPamSessionById(sessionId, {
refetchInterval: (query) => {
const s = query.state.data;
- return s?.status === PamSessionStatus.Active || s?.status === PamSessionStatus.Starting ? 5000 : false;
+ return s?.status === PamSessionStatus.Active || s?.status === PamSessionStatus.Starting
+ ? 5000
+ : false;
},
refetchIntervalInBackground: false
});