react-hook-form 7.44.0 → 7.44.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -582,7 +582,7 @@ function Form(props) {
582
582
  const shouldStringifySubmissionData = [
583
583
  headers && headers['Content-Type'],
584
584
  encType,
585
- ].includes('json');
585
+ ].some((value) => value && value.includes('json'));
586
586
  const response = await fetch(action, {
587
587
  method,
588
588
  headers: {