@panneau/core 1.0.0-alpha.237 → 1.0.0-alpha.242

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/es/hooks.js CHANGED
@@ -260,7 +260,10 @@ var useForm = function useForm() {
260
260
  error: false
261
261
  });
262
262
  setResponse(resp);
263
- onComplete(resp);
263
+
264
+ if (onComplete !== null) {
265
+ onComplete(resp);
266
+ }
264
267
  };
265
268
 
266
269
  var finalPostForm = useCallback(function (postAction, postData) {
package/lib/hooks.js CHANGED
@@ -295,7 +295,10 @@ var useForm = function useForm() {
295
295
  error: false
296
296
  });
297
297
  setResponse(resp);
298
- onComplete(resp);
298
+
299
+ if (onComplete !== null) {
300
+ onComplete(resp);
301
+ }
299
302
  };
300
303
 
301
304
  var finalPostForm = react.useCallback(function (postAction, postData) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/core",
3
- "version": "1.0.0-alpha.237",
3
+ "version": "1.0.0-alpha.242",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -114,5 +114,5 @@
114
114
  "publishConfig": {
115
115
  "access": "public"
116
116
  },
117
- "gitHead": "04ba18e9dc24997f869503808313cfab7f5065b2"
117
+ "gitHead": "642186399b25e090f6fa3a210d14f195e2121a38"
118
118
  }