@open-tender/cloud
Advanced tools
Comparing version 0.1.93 to 0.1.94
@@ -162,5 +162,5 @@ "use strict"; | ||
const payload = Object.assign(Object.assign({}, (0, groupOrder_1.makeCartPayload)(response)), { isCartOwner: true, cartOwner: customer }); | ||
dispatch((0, groupOrder_1.adjustGroupOrder)(payload)); | ||
dispatch((0, notifications_1.showNotification)('Group order reopened!')); | ||
dispatch((0, order_1.setAlert)({ type: 'groupOrder' })); | ||
return payload; | ||
} | ||
@@ -226,4 +226,5 @@ catch (err) { | ||
}) | ||
.addCase(exports.reopenGroupOrder.fulfilled, (state, action) => { | ||
return Object.assign(Object.assign(Object.assign({}, state), action.payload), { loading: 'idle', error: null }); | ||
.addCase(exports.reopenGroupOrder.fulfilled, state => { | ||
state.error = null; | ||
state.loading = 'idle'; | ||
}) | ||
@@ -230,0 +231,0 @@ .addCase(exports.reopenGroupOrder.pending, state => { |
@@ -157,5 +157,5 @@ import { __awaiter } from "tslib"; | ||
const payload = Object.assign(Object.assign({}, makeCartPayload(response)), { isCartOwner: true, cartOwner: customer }); | ||
dispatch(adjustGroupOrder(payload)); | ||
dispatch(showNotification('Group order reopened!')); | ||
dispatch(setAlert({ type: 'groupOrder' })); | ||
return payload; | ||
} | ||
@@ -221,4 +221,5 @@ catch (err) { | ||
}) | ||
.addCase(reopenGroupOrder.fulfilled, (state, action) => { | ||
return Object.assign(Object.assign(Object.assign({}, state), action.payload), { loading: 'idle', error: null }); | ||
.addCase(reopenGroupOrder.fulfilled, state => { | ||
state.error = null; | ||
state.loading = 'idle'; | ||
}) | ||
@@ -225,0 +226,0 @@ .addCase(reopenGroupOrder.pending, state => { |
{ | ||
"name": "@open-tender/cloud", | ||
"version": "0.1.93", | ||
"version": "0.1.94", | ||
"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
20622
911547