Skip to content

Commit 5c405ce

Browse files
limit users to 2500
Signed-off-by: Rajesh-Nagarajan-11 <rajeshnagarajan36@gmail.com>
1 parent e649292 commit 5c405ce

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • src/components/Pricing/PricingAddons

src/components/Pricing/PricingAddons/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,12 @@ export const PricingAddons = ({ isYearly = false, setIsYearly, currency, enterpr
538538
<TextField
539539
type="number"
540540
value={enterpriseUsers}
541-
onChange={(e) => setEnterpriseUsers(parseInt(e.target.value, 10))}
542-
inputProps={{ min: 1, style: { textAlign: "center" } }}
541+
onChange={(e) => {
542+
const val = parseInt(e.target.value, 10);
543+
if (isNaN(val) || (val >= 1 && val <= 2500)) {
544+
setEnterpriseUsers(val);
545+
}
546+
}}
543547
sx={boxStyles.enterpriseUserInput}
544548
/>
545549
</Box>

0 commit comments

Comments
 (0)