@open-tender/cloud 0.4.23 → 0.4.25
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.
|
@@ -24,6 +24,7 @@ const order_2 = require("../order");
|
|
|
24
24
|
const checkout_1 = require("../checkout");
|
|
25
25
|
const groupOrder_1 = require("../groupOrder");
|
|
26
26
|
const guest_1 = require("../guest");
|
|
27
|
+
const tpls_1 = require("./tpls");
|
|
27
28
|
const initialState = {
|
|
28
29
|
auth: null,
|
|
29
30
|
profile: null,
|
|
@@ -115,6 +116,7 @@ exports.logoutCustomer = (0, toolkit_1.createAsyncThunk)(AccountActionType.Logou
|
|
|
115
116
|
dispatch((0, rewards_1.resetCustomerRewards)());
|
|
116
117
|
dispatch((0, communicationPreferences_1.resetCustomerCommunicationPreferences)());
|
|
117
118
|
dispatch((0, guest_1.resetGuest)());
|
|
119
|
+
dispatch((0, tpls_1.resetCustomerTpls)());
|
|
118
120
|
return null;
|
|
119
121
|
}
|
|
120
122
|
catch (err) {
|
|
@@ -20,6 +20,7 @@ import { addMessage, resetOrder, setAlert } from '../order';
|
|
|
20
20
|
import { resetCheckout, updateCheckoutCustomer } from '../checkout';
|
|
21
21
|
import { resetGroupOrder } from '../groupOrder';
|
|
22
22
|
import { resetGuest } from '../guest';
|
|
23
|
+
import { resetCustomerTpls } from './tpls';
|
|
23
24
|
const initialState = {
|
|
24
25
|
auth: null,
|
|
25
26
|
profile: null,
|
|
@@ -110,6 +111,7 @@ export const logoutCustomer = createAsyncThunk(AccountActionType.LogoutCustomer,
|
|
|
110
111
|
dispatch(resetCustomerRewards());
|
|
111
112
|
dispatch(resetCustomerCommunicationPreferences());
|
|
112
113
|
dispatch(resetGuest());
|
|
114
|
+
dispatch(resetCustomerTpls());
|
|
113
115
|
return null;
|
|
114
116
|
}
|
|
115
117
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/cloud",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.25",
|
|
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",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react": "^18.2.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@open-tender/types": "^0.4.
|
|
60
|
-
"@open-tender/utils": "^0.4.
|
|
59
|
+
"@open-tender/types": "^0.4.54",
|
|
60
|
+
"@open-tender/utils": "^0.4.30"
|
|
61
61
|
}
|
|
62
62
|
}
|