@jetthai/cuora 1.1.79 → 1.1.80

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.79",
3
+ "version": "1.1.80",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -100,6 +100,11 @@ export default function (request) {
100
100
  },
101
101
  ],
102
102
  SELECT_AMOUNT: [
103
+ {
104
+ target: 'debouncing',
105
+ actions: 'setAmount',
106
+ cond: 'isDoubleWalletMode',
107
+ },
103
108
  {
104
109
  target: 'pending',
105
110
  actions: 'addAmount',
@@ -158,6 +163,11 @@ export default function (request) {
158
163
  debouncing: {
159
164
  on: {
160
165
  SELECT_AMOUNT: [
166
+ {
167
+ target: 'debouncing',
168
+ actions: 'setAmount',
169
+ cond: 'isDoubleWalletMode',
170
+ },
161
171
  {
162
172
  target: 'debouncing',
163
173
  actions: 'addAmount',
@@ -192,6 +202,11 @@ export default function (request) {
192
202
  entry: 'clearCalculation',
193
203
  on: {
194
204
  SELECT_AMOUNT: [
205
+ {
206
+ target: 'debouncing',
207
+ actions: 'setAmount',
208
+ cond: 'isDoubleWalletMode',
209
+ },
195
210
  {
196
211
  target: 'pending',
197
212
  actions: 'addAmount',
@@ -392,6 +407,9 @@ export default function (request) {
392
407
  }),
393
408
  },
394
409
  guards: {
410
+ isDoubleWalletMode: (context, event) => {
411
+ return context.siteConfig?.walletMode === '4'
412
+ },
395
413
  isFreeWalletMode: (context, event) => {
396
414
  return context.siteConfig?.walletMode === '2'
397
415
  },