@open-tender/cloud
Advanced tools
Comparing version 0.1.87 to 0.1.88
@@ -193,2 +193,3 @@ "use strict"; | ||
const completedOrder = yield api.postOrder(preparedOrder, token); | ||
console.log('completedOrder', completedOrder); | ||
const auth = getState().customer.account.auth; | ||
@@ -286,13 +287,2 @@ 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 || {}; | ||
}); | ||
@@ -299,0 +289,0 @@ } |
@@ -189,2 +189,3 @@ import { __awaiter } from "tslib"; | ||
const completedOrder = yield api.postOrder(preparedOrder, token); | ||
console.log('completedOrder', completedOrder); | ||
const auth = getState().customer.account.auth; | ||
@@ -282,13 +283,2 @@ 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 || {}; | ||
}); | ||
@@ -295,0 +285,0 @@ } |
{ | ||
"name": "@open-tender/cloud", | ||
"version": "0.1.87", | ||
"version": "0.1.88", | ||
"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
910957
20596