mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 22:27:48 +00:00
Minor improvement on a math calculated field
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ export const EnvironmentTable = ({ handlePopUpOpen }: Props) => {
|
|||||||
|
|
||||||
const environmentsOverPlanLimit =
|
const environmentsOverPlanLimit =
|
||||||
subscription?.environmentLimit && currentWorkspace?.environments
|
subscription?.environmentLimit && currentWorkspace?.environments
|
||||||
? currentWorkspace.environments.length - subscription.environmentLimit
|
? Math.max(0, currentWorkspace.environments.length - subscription.environmentLimit)
|
||||||
: 0;
|
: 0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user