@jobber/components-native 0.95.0 → 0.95.1-CLEANUPfi-c27afbd.0

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.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.95.0",
3
+ "version": "0.95.1-CLEANUPfi-c27afbd.0+c27afbdf1",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -96,5 +96,5 @@
96
96
  "react-native-safe-area-context": "^5.4.0",
97
97
  "react-native-svg": ">=12.0.0"
98
98
  },
99
- "gitHead": "ea9cbb709f05442a469763a4f12a332a59cb6350"
99
+ "gitHead": "c27afbdf1236cd8a23a64ef0be784c7b0f793ddb"
100
100
  }
@@ -13,7 +13,7 @@ export function useFormController({ name, value, validations, }) {
13
13
  name: fieldName,
14
14
  control,
15
15
  rules: validations,
16
- defaultValue: value || undefined,
16
+ defaultValue: value !== null && value !== void 0 ? value : undefined,
17
17
  });
18
18
  // The naming convention established by react-hook-form for arrays of fields is, for example, "emails.0.description".
19
19
  // Preserve original behavior: only treat three-part names as nested paths.