@jetthai/cuora 1.0.140-2 → 1.0.140

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,8 +2,6 @@
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.0.140-2](https://github.com/jetthai/cuora-module/compare/v1.0.140...v1.0.140-2) (2022-07-17)
6
-
7
5
  ### [1.0.140](https://github.com/jetthai/cuora-module/compare/v1.0.139...v1.0.140) (2022-06-27)
8
6
 
9
7
  ### [1.0.139](https://github.com/jetthai/cuora-module/compare/v1.0.138...v1.0.139) (2022-06-21)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.140-2",
3
+ "version": "1.0.140",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -194,7 +194,6 @@ export default function (request) {
194
194
  }
195
195
  }),
196
196
  setBanks: assign((context, event) => {
197
- const banks = event.data
198
197
  const { playerBanks, houseBanks, selectedHouseBank } = context
199
198
 
200
199
  const formattedPlayerBanks = playerBanks.map((bank) => {
@@ -203,7 +202,7 @@ export default function (request) {
203
202
  return bank
204
203
  })
205
204
 
206
- const userBanks = [...formattedPlayerBanks, ...banks]
205
+ const banks = [...formattedPlayerBanks, ...event.data]
207
206
 
208
207
  const newHouseBanks = houseBanks.map((houseBank) => {
209
208
  return { ...houseBank, ...banks.find((bank) => houseBank.bankName === bank.bankCode) }
@@ -212,12 +211,12 @@ export default function (request) {
212
211
  const newSelectedHouseBank = { ...selectedHouseBank, ...banks.find((bank) => selectedHouseBank.bankName === bank.bankCode) }
213
212
 
214
213
  return {
215
- banks: userBanks,
214
+ banks,
216
215
  houseBanks: newHouseBanks,
217
216
  selectedHouseBank: newSelectedHouseBank,
218
- selectedUserBank: userBanks[0],
219
- userAccountNumber: userBanks[0].accountNumber,
220
- userAccountName: userBanks[0].holderName,
217
+ selectedUserBank: banks[0],
218
+ userAccountNumber: banks[0].accountNumber,
219
+ userAccountName: banks[0].holderName,
221
220
  }
222
221
  }),
223
222
  setHouseBank: assign((context, event) => {