@opexa/portal-components 0.0.913 → 0.0.916
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/dist/client/hooks/useCreateAurixPayGCashDepositMutation.js +0 -2
- package/dist/client/hooks/useCreateAurixPayGrabPayDepositMutation.js +0 -2
- package/dist/client/hooks/useCreateAurixPayPayMayaDepositMutation.js +0 -2
- package/dist/client/hooks/useCreateAurixPayQrphDepositMutation.js +0 -2
- package/dist/components/DepositWithdrawal/Deposit/AurixPayQRPHDeposit/Form.js +0 -1
- package/dist/components/Disclaimer/DisclaimerV2.js +9 -9
- package/package.json +1 -1
|
@@ -44,8 +44,6 @@ export const useCreateAurixPayGCashDepositMutation = (config) => {
|
|
|
44
44
|
interval: 1000,
|
|
45
45
|
maxAttempt: 20,
|
|
46
46
|
});
|
|
47
|
-
// Sleep for 3.5 seconds before polling
|
|
48
|
-
await new Promise((resolve) => setTimeout(resolve, 6000));
|
|
49
47
|
const res = await poll();
|
|
50
48
|
if (res?.error) {
|
|
51
49
|
const error = new Error();
|
|
@@ -50,8 +50,6 @@ export const useCreateAurixPayGrabPayDepositMutation = (config) => {
|
|
|
50
50
|
interval: 1000,
|
|
51
51
|
maxAttempt: 20,
|
|
52
52
|
});
|
|
53
|
-
// Sleep for 3.5 seconds before polling
|
|
54
|
-
await new Promise((resolve) => setTimeout(resolve, 3500));
|
|
55
53
|
const res = await poll();
|
|
56
54
|
if (res?.error) {
|
|
57
55
|
const error = new Error();
|
|
@@ -50,8 +50,6 @@ export const useCreateAurixPayPayMayaDepositMutation = (config) => {
|
|
|
50
50
|
interval: 1000,
|
|
51
51
|
maxAttempt: 20,
|
|
52
52
|
});
|
|
53
|
-
// Sleep for 3.5 seconds before polling
|
|
54
|
-
await new Promise((resolve) => setTimeout(resolve, 3500));
|
|
55
53
|
const res = await poll();
|
|
56
54
|
if (res?.error) {
|
|
57
55
|
const error = new Error();
|
|
@@ -50,8 +50,6 @@ export const useCreateAurixPayQrphDepositMutation = (config) => {
|
|
|
50
50
|
interval: 1000,
|
|
51
51
|
maxAttempt: 20,
|
|
52
52
|
});
|
|
53
|
-
// Sleep for 3.5 seconds before polling
|
|
54
|
-
await new Promise((resolve) => setTimeout(resolve, 3500));
|
|
55
53
|
const res = await poll();
|
|
56
54
|
if (res?.error) {
|
|
57
55
|
const error = new Error();
|
|
@@ -36,7 +36,6 @@ export function Form() {
|
|
|
36
36
|
const minimumAmount = depositsCount <= 0
|
|
37
37
|
? parseDecimal(paymentSettingsQuery.data?.minimumFirstDepositAmount, 0)
|
|
38
38
|
: parseDecimal(gatewaySettings?.minimumAmount, 0);
|
|
39
|
-
console.log(gatewaySettings, 'maximumAmount');
|
|
40
39
|
const promosQuery = useAvailablePromosQuery();
|
|
41
40
|
const promos = promosQuery.data ?? [];
|
|
42
41
|
const definition = z
|
|
@@ -5,7 +5,6 @@ import { isString } from 'lodash-es';
|
|
|
5
5
|
import Image from 'next/image';
|
|
6
6
|
import { useState } from 'react';
|
|
7
7
|
import { twMerge } from 'tailwind-merge';
|
|
8
|
-
import invariant from 'tiny-invariant';
|
|
9
8
|
import { useShallow } from 'zustand/shallow';
|
|
10
9
|
import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
11
10
|
import { useSignOutMutation } from '../../client/hooks/useSignOutMutation.js';
|
|
@@ -72,14 +71,15 @@ export function DisclaimerV2(props) {
|
|
|
72
71
|
queryKey: getSessionQueryKey(),
|
|
73
72
|
queryFn: async () => getSession(),
|
|
74
73
|
});
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
if (session.status === 'authenticated') {
|
|
75
|
+
await unregisterFCMDevice({
|
|
76
|
+
type: ['IOS', 'ANDROID'],
|
|
77
|
+
}, {
|
|
78
|
+
headers: {
|
|
79
|
+
Authorization: `Bearer ${session.token}`,
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
83
|
}
|
|
84
84
|
signOutMutation.mutate();
|
|
85
85
|
if (props.redirectUrlOnNoConsent) {
|