mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 01:27:31 +00:00
type check fix
This commit is contained in:
@@ -43,7 +43,7 @@ export const PamAccessAccountModal = ({ isOpen, onOpenChange, account }: Props)
|
|||||||
// ms library does not handle months (M) so we do it separately
|
// ms library does not handle months (M) so we do it separately
|
||||||
if (unit === "M") {
|
if (unit === "M") {
|
||||||
const value = parseInt(duration, 10);
|
const value = parseInt(duration, 10);
|
||||||
if (!isNaN(value) && value > 0) {
|
if (!Number.isNaN(value) && value > 0) {
|
||||||
const hours = value * 30 * 24;
|
const hours = value * 30 * 24;
|
||||||
return `${hours}h`;
|
return `${hours}h`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user