From 5bff92fe560b39687f33edbde7c3162614e54c1d Mon Sep 17 00:00:00 2001 From: x032205 Date: Thu, 23 Oct 2025 16:26:03 -0400 Subject: [PATCH] type check fix --- .../pam/PamAccountsPage/components/PamAccessAccountModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccessAccountModal.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccessAccountModal.tsx index 59964609a..351195a59 100644 --- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccessAccountModal.tsx +++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccessAccountModal.tsx @@ -43,7 +43,7 @@ export const PamAccessAccountModal = ({ isOpen, onOpenChange, account }: Props) // ms library does not handle months (M) so we do it separately if (unit === "M") { const value = parseInt(duration, 10); - if (!isNaN(value) && value > 0) { + if (!Number.isNaN(value) && value > 0) { const hours = value * 30 * 24; return `${hours}h`; }