Skip to content

Commit df7c5e7

Browse files
committed
[Teams] Fix team seat quantity type conversion
1 parent 540d387 commit df7c5e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/dashboard/src/settings/Teams.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ function AddMembersModal(props: {
616616
<div className="flex flex-col space-y-2 pb-4">
617617
<label htmlFor="quantity" className="font-medium">Members</label>
618618
<select name="quantity" value={quantity} className="rounded-md w-full border-2 border-gray-400"
619-
onChange={(e) => setQuantity(e.target.value as any)}>
619+
onChange={(e) => setQuantity(parseInt(e.target.value || '1', 10))}>
620620
{quantities.map(n => (
621621
<option key={`quantity-${n}`} value={n}>{n}</option>
622622
))}
@@ -684,7 +684,7 @@ function NewTeamModal(props: {
684684
<div className="flex flex-col space-y-2">
685685
<label htmlFor="quantity" className="font-medium">Members</label>
686686
<select name="quantity" value={quantity} className="rounded-md w-full border-2 border-gray-400"
687-
onChange={(e) => setQuantity(e.target.value as any)}>
687+
onChange={(e) => setQuantity(parseInt(e.target.value || '1', 10))}>
688688
{quantities.map(n => (
689689
<option key={`quantity-${n}`} value={n}>{n}</option>
690690
))}
@@ -902,4 +902,4 @@ function setLocalStorageObject(key: string, object: Object): void {
902902
window.localStorage.setItem(key, JSON.stringify(object));
903903
} catch {
904904
}
905-
}
905+
}

0 commit comments

Comments
 (0)