fix(invites): remvoe never option

This commit is contained in:
diced 2023-05-29 19:26:16 -07:00
parent 30dbfdaac5
commit 86277a091c
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

View file

@ -55,7 +55,7 @@ function CreateInviteModal({ open, setOpen, updateInvites }) {
setOpen(false);
const res = await useFetch('/api/auth/invite', 'POST', {
expiresAt: expiresAt === null ? null : `date=${expiresAt.toISOString()}`,
expiresAt: `date=${expiresAt.toISOString()}`,
count: values.count,
});
@ -95,7 +95,6 @@ function CreateInviteModal({ open, setOpen, updateInvites }) {
{ value: '3d', label: '3 days' },
{ value: '5d', label: '5 days' },
{ value: '7d', label: '7 days' },
{ value: 'never', label: 'Never' },
]}
/>