@open-tender/utils 0.4.98 → 0.5.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.
@@ -47,10 +47,10 @@ const useLoginForm = (loading, error, login, callback, showPassword = true) => {
47
47
  const handleSubmit = (evt) => {
48
48
  var _a, _b;
49
49
  evt === null || evt === void 0 ? void 0 : evt.preventDefault();
50
- setSubmitting(true);
51
50
  const { email, password } = data;
52
51
  if (email)
53
52
  login(email, password);
53
+ setSubmitting(true);
54
54
  ((_a = submitRef.current) === null || _a === void 0 ? void 0 : _a.blur) && ((_b = submitRef.current) === null || _b === void 0 ? void 0 : _b.blur());
55
55
  };
56
56
  return {
@@ -901,6 +901,8 @@ const prepareOrder = (data) => {
901
901
  order.save = data.save;
902
902
  if (data.token)
903
903
  order.token = data.token;
904
+ if (data.kount_device_session_id)
905
+ order.kount_device_session_id = data.kount_device_session_id;
904
906
  return order;
905
907
  };
906
908
  exports.prepareOrder = prepareOrder;
@@ -44,10 +44,10 @@ export const useLoginForm = (loading, error, login, callback, showPassword = tru
44
44
  const handleSubmit = (evt) => {
45
45
  var _a, _b;
46
46
  evt === null || evt === void 0 ? void 0 : evt.preventDefault();
47
- setSubmitting(true);
48
47
  const { email, password } = data;
49
48
  if (email)
50
49
  login(email, password);
50
+ setSubmitting(true);
51
51
  ((_a = submitRef.current) === null || _a === void 0 ? void 0 : _a.blur) && ((_b = submitRef.current) === null || _b === void 0 ? void 0 : _b.blur());
52
52
  };
53
53
  return {
@@ -863,6 +863,8 @@ export const prepareOrder = (data) => {
863
863
  order.save = data.save;
864
864
  if (data.token)
865
865
  order.token = data.token;
866
+ if (data.kount_device_session_id)
867
+ order.kount_device_session_id = data.kount_device_session_id;
866
868
  return order;
867
869
  };
868
870
  export const checkAmountRemaining = (total, tenders) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.4.98",
3
+ "version": "0.5.1",
4
4
  "description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",