Math, asked by poojithaIPS8853, 1 year ago

Yup must be a `number` type, but the final value was: `nan` (cast from the value `""`

Answers

Answered by AditiHegde
0

Yup must be a `number` type, but the final value was: `nan` (cast from the value `""`

  • From given, we gave,
  • const quantity = number().positive().nullable(); does not work for me in case of quantity:null this input gives me this error
  • quantity must be of type number, but the final value was: nan (cast from the value nan).
  • Validation Error: quantity must be a number type, but the final value was: nan (cast from the value nan).
Similar questions