File tree 1 file changed +3
-3
lines changed
components/dashboard/src/settings
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ function AddMembersModal(props: {
616
616
< div className = "flex flex-col space-y-2 pb-4" >
617
617
< label htmlFor = "quantity" className = "font-medium" > Members</ label >
618
618
< 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 ) ) } >
620
620
{ quantities . map ( n => (
621
621
< option key = { `quantity-${ n } ` } value = { n } > { n } </ option >
622
622
) ) }
@@ -684,7 +684,7 @@ function NewTeamModal(props: {
684
684
< div className = "flex flex-col space-y-2" >
685
685
< label htmlFor = "quantity" className = "font-medium" > Members</ label >
686
686
< 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 ) ) } >
688
688
{ quantities . map ( n => (
689
689
< option key = { `quantity-${ n } ` } value = { n } > { n } </ option >
690
690
) ) }
@@ -902,4 +902,4 @@ function setLocalStorageObject(key: string, object: Object): void {
902
902
window . localStorage . setItem ( key , JSON . stringify ( object ) ) ;
903
903
} catch {
904
904
}
905
- }
905
+ }
You can’t perform that action at this time.
0 commit comments