@open-tender/cloud
Advanced tools
Comparing version 0.1.88 to 0.1.89
@@ -193,3 +193,2 @@ "use strict"; | ||
const completedOrder = yield api.postOrder(preparedOrder, token); | ||
console.log('completedOrder', completedOrder); | ||
const auth = getState().customer.account.auth; | ||
@@ -287,2 +286,13 @@ const { email, password } = preparedOrder.customer || {}; | ||
state.errors = action.payload || {}; | ||
}) | ||
.addCase(exports.submitOrderPay.fulfilled, (_, action) => { | ||
return Object.assign(Object.assign({}, initialState), { completedOrder: action.payload }); | ||
}) | ||
.addCase(exports.submitOrderPay.pending, state => { | ||
state.loading = 'pending'; | ||
}) | ||
.addCase(exports.submitOrderPay.rejected, (state, action) => { | ||
state.loading = 'idle'; | ||
state.submitting = false; | ||
state.errors = action.payload || {}; | ||
}); | ||
@@ -289,0 +299,0 @@ } |
@@ -189,3 +189,2 @@ import { __awaiter } from "tslib"; | ||
const completedOrder = yield api.postOrder(preparedOrder, token); | ||
console.log('completedOrder', completedOrder); | ||
const auth = getState().customer.account.auth; | ||
@@ -283,2 +282,13 @@ const { email, password } = preparedOrder.customer || {}; | ||
state.errors = action.payload || {}; | ||
}) | ||
.addCase(submitOrderPay.fulfilled, (_, action) => { | ||
return Object.assign(Object.assign({}, initialState), { completedOrder: action.payload }); | ||
}) | ||
.addCase(submitOrderPay.pending, state => { | ||
state.loading = 'pending'; | ||
}) | ||
.addCase(submitOrderPay.rejected, (state, action) => { | ||
state.loading = 'idle'; | ||
state.submitting = false; | ||
state.errors = action.payload || {}; | ||
}); | ||
@@ -285,0 +295,0 @@ } |
{ | ||
"name": "@open-tender/cloud", | ||
"version": "0.1.88", | ||
"version": "0.1.89", | ||
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
911841
20616