@@ -43,15 +43,16 @@ function Root({ companyId, state, className, children }: StateTaxesFormProps) {
4343 // Schema and default value generation
4444 const { dynamicSchema, defaultValues } = useMemo ( ( ) => {
4545 const schemaShape : Record < string , z . ZodObject < Record < string , z . ZodTypeAny > > > = { }
46- const values : Partial < Record < string , Record < string , string | boolean | undefined > > > = { }
46+ const values : Partial < Record < string , Record < string , string | boolean | number | undefined > > > =
47+ { }
4748
4849 //Looping through each requirement set
4950 stateTaxRequirements . requirementSets ?. forEach ( requirementSet => {
5051 if ( ! requirementSet . key ) return
5152
5253 const requirementSetKey = requirementSet . key
5354 const requirementShape : Record < string , z . ZodTypeAny > = { }
54- const requirementValues : Record < string , string | boolean | undefined > = { }
55+ const requirementValues : Record < string , string | boolean | number | undefined > = { }
5556
5657 requirementSet . requirements ?. forEach ( requirement => {
5758 if ( ! requirement . key ) return
@@ -62,7 +63,9 @@ function Root({ companyId, state, className, children }: StateTaxesFormProps) {
6263 requirementValues [ requirementKey ] =
6364 requirement . metadata ?. type === 'radio'
6465 ? ( requirement . value ?? undefined )
65- : ( requirement . value ?? '' )
66+ : requirement . value
67+ ? String ( requirement . value )
68+ : ''
6669
6770 // --- Schema Logic ---
6871 // Start with a basic string schema
0 commit comments