@jetthai/cuora 1.1.270-fix-4 → 1.1.270-fix-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.270-fix-5](https://github.com/jetthai/cuora-module/compare/v1.1.270-fix-4...v1.1.270-fix-5) (2024-06-05)
|
|
6
|
+
|
|
5
7
|
### [1.1.270-fix-4](https://github.com/jetthai/cuora-module/compare/v1.1.270-fix-3...v1.1.270-fix-4) (2024-06-04)
|
|
6
8
|
|
|
7
9
|
### [1.1.270-fix-3](https://github.com/jetthai/cuora-module/compare/v1.1.270-fix-2...v1.1.270-fix-3) (2024-06-04)
|
package/package.json
CHANGED
|
@@ -151,12 +151,14 @@ export default function (request, context) {
|
|
|
151
151
|
return bank
|
|
152
152
|
})
|
|
153
153
|
|
|
154
|
-
const formattedPlayerBanks = playerBanks
|
|
155
|
-
|
|
156
|
-
bank
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
154
|
+
const formattedPlayerBanks = playerBanks
|
|
155
|
+
.filter((item) => item.bindingType === 'BANK')
|
|
156
|
+
.map((bank) => {
|
|
157
|
+
const foundBank = banks.find((item) => item.bankCode === bank.bankCode)
|
|
158
|
+
bank.displayText = `${foundBank?.shortName} ${bank.accountNumber.slice(-5)}`
|
|
159
|
+
bank.imageUrl = foundBank?.imageUrl
|
|
160
|
+
return bank
|
|
161
|
+
})
|
|
160
162
|
|
|
161
163
|
const userBanks = [
|
|
162
164
|
...formattedPlayerBanks,
|
|
@@ -265,11 +265,13 @@ export default function (request) {
|
|
|
265
265
|
const banks = event.data
|
|
266
266
|
const { playerBanks, houseBanks, selectedHouseBank } = context
|
|
267
267
|
|
|
268
|
-
const formattedPlayerBanks = playerBanks
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
268
|
+
const formattedPlayerBanks = playerBanks
|
|
269
|
+
.filter((item) => item.bindingType === 'BANK')
|
|
270
|
+
.map((bank) => {
|
|
271
|
+
bank.shortName = `${bank.bankCode} ${bank.accountNumber.slice(-5)}`
|
|
272
|
+
bank.imageUrl = event.data.find((item) => item.bankCode === bank.bankCode)?.imageUrl
|
|
273
|
+
return bank
|
|
274
|
+
})
|
|
273
275
|
|
|
274
276
|
const userBanks = [...formattedPlayerBanks, ...banks]
|
|
275
277
|
|