@jetthai/cuora 1.1.31 → 1.1.32

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.32](https://github.com/jetthai/cuora-module/compare/v1.1.31...v1.1.32) (2023-01-09)
6
+
5
7
  ### [1.1.31](https://github.com/jetthai/cuora-module/compare/v1.1.30...v1.1.31) (2023-01-09)
6
8
 
7
9
  ### [1.1.30](https://github.com/jetthai/cuora-module/compare/v1.1.29...v1.1.30) (2023-01-09)
package/dist/bundle.mjs CHANGED
@@ -15114,7 +15114,7 @@ function withdraw_vn (request) {
15114
15114
  const { differAmountLimit, enableWithdraw, enableWithdrawAmount, maxWithdrawStatus, maximumWithdrawAmount, minimumWithdrawAmount } =
15115
15115
  event.data?.withdrawRule;
15116
15116
 
15117
- const rules = event.data.rules.filter((rule) => rule.maxWithdrawAmount > 0);
15117
+ const rules = (event.data?.withdrawRule || []).rules.filter((rule) => rule.maxWithdrawAmount > 0);
15118
15118
 
15119
15119
  const { balance } = context;
15120
15120
  const lastMatchedIndex = findLastIndex_1(rules, (rule) => balance >= rule.greaterEqualThen);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.31",
3
+ "version": "1.1.32",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -332,7 +332,7 @@ export default function (request) {
332
332
  const { differAmountLimit, enableWithdraw, enableWithdrawAmount, maxWithdrawStatus, maximumWithdrawAmount, minimumWithdrawAmount } =
333
333
  event.data?.withdrawRule
334
334
 
335
- const rules = event.data.rules.filter((rule) => rule.maxWithdrawAmount > 0)
335
+ const rules = (event.data?.withdrawRule || []).rules.filter((rule) => rule.maxWithdrawAmount > 0)
336
336
 
337
337
  const { balance } = context
338
338
  const lastMatchedIndex = findLastIndex(rules, (rule) => balance >= rule.greaterEqualThen)