@jetthai/cuora 1.1.293-dev-2 → 1.1.293-dev-4

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,18 @@
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.293-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.293-dev-3...v1.1.293-dev-4) (2024-08-20)
6
+
7
+ ### [1.1.293-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.295...v1.1.293-dev-3) (2024-08-17)
8
+
9
+ ### [1.1.293-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.293-dev-1...v1.1.293-dev-2) (2024-08-16)
10
+
11
+ ### [1.1.293-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.293-dev...v1.1.293-dev-1) (2024-08-15)
12
+
13
+ ### [1.1.293-dev](https://github.com/jetthai/cuora-module/compare/v1.1.294...v1.1.293-dev) (2024-08-15)
14
+
15
+ ### [1.1.294](https://github.com/jetthai/cuora-module/compare/v1.1.293...v1.1.294) (2024-08-14)
16
+
5
17
  ### [1.1.293-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.293-dev-1...v1.1.293-dev-2) (2024-08-16)
6
18
 
7
19
  ### [1.1.293-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.293-dev...v1.1.293-dev-1) (2024-08-15)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.293-dev-2",
3
+ "version": "1.1.293-dev-4",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -244,7 +244,14 @@ export default function (request, context) {
244
244
  isSubmittable: (context, event) => {
245
245
  const { selectedCrypto, selectedAddress, selectedAmount, depositTime, receipt, calculation, siteConfig } = context
246
246
  const { bankDepositProofIsOptional = '1' } = siteConfig
247
- return selectedCrypto && selectedAddress && selectedAmount && depositTime && calculation && (receipt || bankDepositProofIsOptional === '0')
247
+ return (
248
+ selectedCrypto &&
249
+ selectedAddress &&
250
+ selectedAmount &&
251
+ (bankDepositProofIsOptional === '2' ? true : depositTime) &&
252
+ calculation &&
253
+ (receipt || bankDepositProofIsOptional !== '1')
254
+ )
248
255
  },
249
256
  },
250
257
  services: {
@@ -553,7 +553,7 @@ export default function (request) {
553
553
  gametype_id: gameTypeId,
554
554
  mapping_id: mappingId,
555
555
  is_demo: false,
556
- is_mobile: isMobile,
556
+ is_mobile: isMobile === 'mobile' ? 'y' : null,
557
557
  lang,
558
558
  return_url: returnProviders.includes(providerId) ? `${window.location.origin}${context.base}return` : window.location.href, // For providers to return.
559
559
  }