mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
lint.
This commit is contained in:
@@ -76,7 +76,7 @@ export default function SelfHostedExpansionCard(props: Props) {
|
||||
const maxAdditionalSeats = getMaximumAdditionalSeats();
|
||||
|
||||
const handleNewSeatsInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
let requestedSeats = parseInt(e.target.value, 10);
|
||||
const requestedSeats = parseInt(e.target.value, 10);
|
||||
|
||||
if (!isNaN(requestedSeats) && requestedSeats <= 0) {
|
||||
e.preventDefault();
|
||||
@@ -160,7 +160,7 @@ export default function SelfHostedExpansionCard(props: Props) {
|
||||
defaultMessage='{warningIcon} You must purchase at least {minimumSeats} seats to be compliant with your license'
|
||||
values={{
|
||||
warningIcon: <WarningIcon additionalClassName={'SelfHostedExpansionRHSCard__warning'}/>,
|
||||
minimumSeats: props.minimumSeats
|
||||
minimumSeats: props.minimumSeats,
|
||||
}}
|
||||
/>
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ export default function SelfHostedExpansionModal() {
|
||||
const currentPlan = license.SkuName;
|
||||
const activeUsers = useSelector(getFilteredUsersStats)?.total_users_count || 0;
|
||||
const [minimumSeats] = useState(activeUsers <= licensedSeats ? 1 : activeUsers - licensedSeats);
|
||||
const [requestedSeats, setRequestedSeats] = useState(minimumSeats)
|
||||
const [requestedSeats, setRequestedSeats] = useState(minimumSeats);
|
||||
|
||||
const [stripeLoadHint, setStripeLoadHint] = useState(Math.random());
|
||||
const stripeRef = useLoadStripe(stripeLoadHint);
|
||||
|
||||
Reference in New Issue
Block a user