@open-tender/cloud 0.4.43 → 0.4.45
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.
|
@@ -141,7 +141,7 @@ exports.validateOrder = (0, toolkit_1.createAsyncThunk)(CheckoutActionType.Valid
|
|
|
141
141
|
else if ((0, utils_1.contains)(keys, ['customer'])) {
|
|
142
142
|
errors['customer'] = errMessages.customer;
|
|
143
143
|
}
|
|
144
|
-
return { check, errors };
|
|
144
|
+
return { check, errors, loading: 'idle' };
|
|
145
145
|
}
|
|
146
146
|
catch (err) {
|
|
147
147
|
const errors = (0, utils_1.makeFormErrorsNested)(err);
|
|
@@ -309,11 +309,6 @@ const checkoutSlice = (0, toolkit_1.createSlice)({
|
|
|
309
309
|
state.loading = 'idle';
|
|
310
310
|
state.submitting = false;
|
|
311
311
|
state.errors = action.payload || {};
|
|
312
|
-
})
|
|
313
|
-
.addMatcher(action => action.type.endsWith('/fulfilled'), state => {
|
|
314
|
-
setTimeout(() => {
|
|
315
|
-
state.loading = 'idle';
|
|
316
|
-
}, 0);
|
|
317
312
|
});
|
|
318
313
|
}
|
|
319
314
|
});
|
|
@@ -137,7 +137,7 @@ export const validateOrder = createAsyncThunk(CheckoutActionType.ValidateOrder,
|
|
|
137
137
|
else if (contains(keys, ['customer'])) {
|
|
138
138
|
errors['customer'] = errMessages.customer;
|
|
139
139
|
}
|
|
140
|
-
return { check, errors };
|
|
140
|
+
return { check, errors, loading: 'idle' };
|
|
141
141
|
}
|
|
142
142
|
catch (err) {
|
|
143
143
|
const errors = makeFormErrorsNested(err);
|
|
@@ -305,11 +305,6 @@ const checkoutSlice = createSlice({
|
|
|
305
305
|
state.loading = 'idle';
|
|
306
306
|
state.submitting = false;
|
|
307
307
|
state.errors = action.payload || {};
|
|
308
|
-
})
|
|
309
|
-
.addMatcher(action => action.type.endsWith('/fulfilled'), state => {
|
|
310
|
-
setTimeout(() => {
|
|
311
|
-
state.loading = 'idle';
|
|
312
|
-
}, 0);
|
|
313
308
|
});
|
|
314
309
|
}
|
|
315
310
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.45",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types 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",
|