@opexa/portal-components 0.0.827 → 0.0.828

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.
@@ -18,7 +18,7 @@ import { getQueryClient } from '../../utils/getQueryClient.js';
18
18
  import { getSessionQueryKey } from '../../utils/queryKeys.js';
19
19
  import { LOCALSTORAGE_PUSH_NOTIFICATION_TOKEN_KEY } from '../PortalProvider/PushNotifications.js';
20
20
  export function GameLaunchTrigger(props) {
21
- console.log('props', props.bypassKycCheck);
21
+ const { game, bypassKycCheck, ...rest } = props;
22
22
  const sessionQuery = useSessionQuery();
23
23
  const verificationQuery = useMemberVerificationQuery();
24
24
  const createGameSessionMutation = useCreateGameSessionMutation();
@@ -39,13 +39,13 @@ export function GameLaunchTrigger(props) {
39
39
  : globalStore.gameLaunch.details.status !== 'WAITING'
40
40
  ? true
41
41
  : props.disabled;
42
- return (_jsx(ark.button, { type: "button", "aria-label": `Play ${props.game.name}`, "data-state": sessionQuery.data?.status === 'unauthenticated'
42
+ return (_jsx(ark.button, { type: "button", "aria-label": `Play ${game.name}`, "data-state": sessionQuery.data?.status === 'unauthenticated'
43
43
  ? globalStore.signIn.open
44
44
  ? 'open'
45
45
  : 'closed'
46
46
  : globalStore.gameLaunch.details.status === 'WAITING'
47
47
  ? 'closed'
48
- : 'open', ...props, disabled: disabled, onClick: async (e) => {
48
+ : 'open', ...rest, disabled: disabled, onClick: async (e) => {
49
49
  props.onClick?.(e);
50
50
  if (sessionQuery.data?.status === 'unauthenticated') {
51
51
  if (hasSavedBiometry()) {
@@ -143,7 +143,7 @@ export function GameLaunchTrigger(props) {
143
143
  return props.onClick?.(e);
144
144
  }
145
145
  //handle new kyc process to play only on verified members only
146
- if (!props.bypassKycCheck &&
146
+ if (!bypassKycCheck &&
147
147
  (verificationStatus === 'PENDING' ||
148
148
  verificationStatus === 'REJECTED' ||
149
149
  verificationStatus === 'UNVERIFIED' ||
@@ -152,7 +152,7 @@ export function GameLaunchTrigger(props) {
152
152
  return;
153
153
  }
154
154
  globalStore.gameLaunch.setDetails({
155
- game: props.game,
155
+ game: game,
156
156
  status: 'LOADING',
157
157
  session: null,
158
158
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.827",
3
+ "version": "0.0.828",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",