@open-tender/cloud 0.0.81 → 0.0.82
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.
|
@@ -165,9 +165,10 @@ const customerGiftCardsSlice = (0, toolkit_1.createSlice)({
|
|
|
165
165
|
state.error = action.payload;
|
|
166
166
|
state.loading = 'idle';
|
|
167
167
|
})
|
|
168
|
-
.addCase(exports.addCustomerGiftCard.fulfilled, state => {
|
|
168
|
+
.addCase(exports.addCustomerGiftCard.fulfilled, (state, action) => {
|
|
169
169
|
state.loading = 'idle';
|
|
170
170
|
state.error = null;
|
|
171
|
+
state.entities = action.payload;
|
|
171
172
|
})
|
|
172
173
|
.addCase(exports.addCustomerGiftCard.pending, state => {
|
|
173
174
|
state.loading = 'pending';
|
|
@@ -161,9 +161,10 @@ const customerGiftCardsSlice = createSlice({
|
|
|
161
161
|
state.error = action.payload;
|
|
162
162
|
state.loading = 'idle';
|
|
163
163
|
})
|
|
164
|
-
.addCase(addCustomerGiftCard.fulfilled, state => {
|
|
164
|
+
.addCase(addCustomerGiftCard.fulfilled, (state, action) => {
|
|
165
165
|
state.loading = 'idle';
|
|
166
166
|
state.error = null;
|
|
167
|
+
state.entities = action.payload;
|
|
167
168
|
})
|
|
168
169
|
.addCase(addCustomerGiftCard.pending, state => {
|
|
169
170
|
state.loading = 'pending';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.82",
|
|
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",
|