hotfix: change text to adjusted limit (#196)

This commit is contained in:
TacticalCoderJay 2022-10-17 07:59:33 -07:00 committed by GitHub
parent 05de3fed15
commit f9e6158144
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ function CreateInviteModal({ open, setOpen, updateInvites }) {
const onSubmit = async values => { const onSubmit = async values => {
if (!expires.includes(values.expires)) return form.setFieldError('expires', 'Invalid expiration'); if (!expires.includes(values.expires)) return form.setFieldError('expires', 'Invalid expiration');
if (values.count < 1 || values.count > 100) return form.setFieldError('count', 'Must be between 1 and 200'); if (values.count < 1 || values.count > 100) return form.setFieldError('count', 'Must be between 1 and 100');
const expires_at = values.expires === 'never' ? null : new Date({ const expires_at = values.expires === 'never' ? null : new Date({
'30m': Date.now() + 30 * 60 * 1000, '30m': Date.now() + 30 * 60 * 1000,
'1h': Date.now() + 60 * 60 * 1000, '1h': Date.now() + 60 * 60 * 1000,