@jetthai/cuora 1.1.297-dev-4 → 1.1.297-dev-5
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.297-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.297-dev-4...v1.1.297-dev-5) (2024-08-27)
|
|
6
|
+
|
|
5
7
|
### [1.1.297-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.297-dev-3...v1.1.297-dev-4) (2024-08-27)
|
|
6
8
|
|
|
7
9
|
### [1.1.297-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.297-dev-2...v1.1.297-dev-3) (2024-08-26)
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ export default function (request) {
|
|
|
17
17
|
singleMinimumAmountReceive: null,
|
|
18
18
|
remainingCount: 0,
|
|
19
19
|
dailyRedemptionLimit: 0,
|
|
20
|
-
|
|
20
|
+
reachedAmountLimit: false,
|
|
21
21
|
activityNo: null,
|
|
22
22
|
},
|
|
23
23
|
initial: 'idle',
|
|
@@ -136,6 +136,7 @@ export default function (request) {
|
|
|
136
136
|
singleMinimumAmountReceive = 0,
|
|
137
137
|
remainingCount = 0,
|
|
138
138
|
dailyRedemptionLimit = 0,
|
|
139
|
+
reachedAmountLimit = false,
|
|
139
140
|
} = event.data
|
|
140
141
|
|
|
141
142
|
return {
|
|
@@ -148,6 +149,7 @@ export default function (request) {
|
|
|
148
149
|
singleMinimumAmountReceive,
|
|
149
150
|
remainingCount,
|
|
150
151
|
dailyRedemptionLimit,
|
|
152
|
+
reachedAmountLimit,
|
|
151
153
|
}
|
|
152
154
|
}),
|
|
153
155
|
},
|
|
@@ -164,8 +166,8 @@ export default function (request) {
|
|
|
164
166
|
}
|
|
165
167
|
},
|
|
166
168
|
isClaimAmountLimitReached: (context, event) => {
|
|
167
|
-
const {
|
|
168
|
-
return
|
|
169
|
+
const { reachedAmountLimit } = context
|
|
170
|
+
return reachedAmountLimit
|
|
169
171
|
},
|
|
170
172
|
isClaimExhausted: (context, event) => {
|
|
171
173
|
const { collectAvailable, remainingCount, dailyRedemptionLimit } = context
|