Skip to content

Commit 9435f38

Browse files
authored
Merge branch 'master' into master
2 parents 84a0d12 + b5c6f50 commit 9435f38

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/components/Pricing/PricingAddons/index.js

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

src/components/Pricing/PricingAddons/styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export const boxStyles = {
222222
alignItems: "center"
223223
},
224224
enterpriseUserInput: {
225-
width: "50px",
225+
width: "65px",
226226
ml: 1,
227227
"& .MuiInputBase-input": {
228228
py: (theme) => theme.spacing(0.5),

0 commit comments

Comments
 (0)