@jetthai/cuora 1.1.273-withdraw-5 → 1.1.273-withdraw-6
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.273-withdraw-6](https://github.com/jetthai/cuora-module/compare/v1.1.273-withdraw-5...v1.1.273-withdraw-6) (2024-05-29)
|
|
6
|
+
|
|
5
7
|
### [1.1.273-withdraw-5](https://github.com/jetthai/cuora-module/compare/v1.1.273-withdraw-4...v1.1.273-withdraw-5) (2024-05-29)
|
|
6
8
|
|
|
7
9
|
### [1.1.273-withdraw-4](https://github.com/jetthai/cuora-module/compare/v1.1.273-withdraw-3...v1.1.273-withdraw-4) (2024-05-29)
|
package/package.json
CHANGED
|
@@ -470,13 +470,11 @@ export default function (request) {
|
|
|
470
470
|
}
|
|
471
471
|
}),
|
|
472
472
|
clearCalculation: assign((context, event) => {
|
|
473
|
-
console.log('Clear')
|
|
474
473
|
return {
|
|
475
474
|
calculation: null,
|
|
476
475
|
}
|
|
477
476
|
}),
|
|
478
477
|
setAmount: assign((context, event) => {
|
|
479
|
-
console.log('Set Amount:', event.data)
|
|
480
478
|
return {
|
|
481
479
|
amount: event.data,
|
|
482
480
|
}
|
|
@@ -488,11 +486,6 @@ export default function (request) {
|
|
|
488
486
|
const { minimum = 0, maximum = 0 } = paymentDetail?.[0] || {}
|
|
489
487
|
const { balance = 0 } = userInfo || {}
|
|
490
488
|
const lastMax = Math.min(parseFloat(balance), maximum)
|
|
491
|
-
console.log('Minimum:', minimum)
|
|
492
|
-
console.log('Maximum:', maximum)
|
|
493
|
-
console.log('Balance:', parseFloat(balance))
|
|
494
|
-
console.log('LastMax:', lastMax)
|
|
495
|
-
console.log('Result:', !!currentBank && amount > 0 && minimum <= amount && amount <= lastMax)
|
|
496
489
|
return !!currentBank && amount > 0 && minimum <= amount && amount <= lastMax
|
|
497
490
|
},
|
|
498
491
|
isActivity: (context, event) => {
|