@jobber/components-native 0.75.3-POC-fixing-d44fac2.135 → 0.75.3-POC-fixing-b57471f.136

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.75.3-POC-fixing-d44fac2.135+d44fac22",
3
+ "version": "0.75.3-POC-fixing-b57471f.136+b57471fe",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -79,5 +79,5 @@
79
79
  "react-native-safe-area-context": "^4.5.2",
80
80
  "react-native-svg": ">=12.0.0"
81
81
  },
82
- "gitHead": "d44fac22c580ff68fe8dc51bfb60d678e4d0e691"
82
+ "gitHead": "b57471fec4113fb6fb2f3e0fb76273ad024896d9"
83
83
  }
@@ -143,7 +143,7 @@ function InternalForm({ children, onBeforeSubmit, onSubmit, onSubmitError, onSub
143
143
  function callHandleSubmit() {
144
144
  let result;
145
145
  handleSubmit(data => {
146
- internalSubmit(data).then(saveResult => {
146
+ return internalSubmit(data).then(saveResult => {
147
147
  result = saveResult;
148
148
  });
149
149
  })().then(() => {
@@ -160,8 +160,7 @@ function InternalForm({ children, onBeforeSubmit, onSubmit, onSubmitError, onSub
160
160
  }
161
161
  if (performSubmit) {
162
162
  Keyboard.dismiss();
163
- return onSubmit(data)
164
- .catch(handleSubmitCatch);
163
+ return onSubmit(data).catch(handleSubmitCatch);
165
164
  }
166
165
  });
167
166
  }