@jetthai/cuora 1.0.139 → 1.0.140-2

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