@open-tender/utils 0.1.133 → 0.1.134
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.
|
@@ -123,16 +123,7 @@ const useSignUpForm = (loading, error, signUp, callback, checkConfig, hidePasswo
|
|
|
123
123
|
evt === null || evt === void 0 ? void 0 : evt.preventDefault();
|
|
124
124
|
setErrors({});
|
|
125
125
|
setSubmitting(true);
|
|
126
|
-
const values = Object.assign({}, data);
|
|
127
|
-
// const communications = []
|
|
128
|
-
// const values = Object.entries(data).reduce((obj, [key, value]) => {
|
|
129
|
-
// if (key.startsWith('comms')) {
|
|
130
|
-
// const [, notificationArea] = key.split('-')
|
|
131
|
-
// communications.push(notificationArea.toUpperCase())
|
|
132
|
-
// return obj
|
|
133
|
-
// }
|
|
134
|
-
// return { ...obj, [key]: value }
|
|
135
|
-
// }, {} as CustomerCreate)
|
|
126
|
+
const values = Object.assign(Object.assign({}, data), { communications: comms });
|
|
136
127
|
if (values.birth_date) {
|
|
137
128
|
values.birth_date = (0, utils_1.slashesToDashes)(values.birth_date);
|
|
138
129
|
}
|
|
@@ -120,16 +120,7 @@ export const useSignUpForm = (loading, error, signUp, callback, checkConfig, hid
|
|
|
120
120
|
evt === null || evt === void 0 ? void 0 : evt.preventDefault();
|
|
121
121
|
setErrors({});
|
|
122
122
|
setSubmitting(true);
|
|
123
|
-
const values = Object.assign({}, data);
|
|
124
|
-
// const communications = []
|
|
125
|
-
// const values = Object.entries(data).reduce((obj, [key, value]) => {
|
|
126
|
-
// if (key.startsWith('comms')) {
|
|
127
|
-
// const [, notificationArea] = key.split('-')
|
|
128
|
-
// communications.push(notificationArea.toUpperCase())
|
|
129
|
-
// return obj
|
|
130
|
-
// }
|
|
131
|
-
// return { ...obj, [key]: value }
|
|
132
|
-
// }, {} as CustomerCreate)
|
|
123
|
+
const values = Object.assign(Object.assign({}, data), { communications: comms });
|
|
133
124
|
if (values.birth_date) {
|
|
134
125
|
values.birth_date = slashesToDashes(values.birth_date);
|
|
135
126
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/utils",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.134",
|
|
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",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"typescript": "^4.8.2"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@open-tender/types": "^0.2.
|
|
57
|
+
"@open-tender/types": "^0.2.64",
|
|
58
58
|
"@reduxjs/toolkit": "^1.8.5",
|
|
59
59
|
"react": "^18.2.0"
|
|
60
60
|
},
|