@jetthai/cuora 1.1.74 → 1.1.76

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.74",
3
+ "version": "1.1.76",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -50,4 +50,5 @@ export default {
50
50
  exchange: (data) => ({ url: 'activities/exchange', method: 'post', params: data }),
51
51
  collect: (data) => ({ url: 'activities/collect', method: 'post', params: data }),
52
52
  getVipTable: () => ({ url: 'activities/viptable', method: 'get' }),
53
+ getRankingList: () => ({ url: 'activities/ranking', method: 'get' }),
53
54
  }
@@ -105,7 +105,7 @@ export default function (request) {
105
105
  actions: 'setAmount',
106
106
  },
107
107
  CONFIRM: {
108
- target: 'calculating',
108
+ target: 'debouncing',
109
109
  },
110
110
  BACK: {
111
111
  target: 'loaded',
@@ -131,10 +131,22 @@ export default function (request) {
131
131
  calculating: {
132
132
  invoke: {
133
133
  src: 'fetchCalculation',
134
- onDone: {
135
- target: 'calculated',
136
- actions: 'setCalculation',
137
- },
134
+ onDone: [
135
+ {
136
+ target: 'submitting',
137
+ actions: 'setCalculation',
138
+ cond: 'jumpLinkEnable',
139
+ },
140
+ {
141
+ target: 'cardInfo',
142
+ actions: 'setCalculation',
143
+ cond: 'isFreeWalletMode',
144
+ },
145
+ {
146
+ target: 'calculated',
147
+ actions: 'setCalculation',
148
+ },
149
+ ],
138
150
  onError: {
139
151
  target: 'calculable',
140
152
  },