@opexa/portal-components 0.0.1065 → 0.0.1067

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.
@@ -22,7 +22,7 @@ import { Button } from '../../../ui/Button/index.js';
22
22
  import { Dialog } from '../../../ui/Dialog/index.js';
23
23
  import { Field } from '../../../ui/Field/index.js';
24
24
  import { getQueryClient } from '../../../utils/getQueryClient.js';
25
- import { getMemberVerificationQueryKey, getSessionQueryKey } from '../../../utils/queryKeys.js';
25
+ import { getMemberVerificationQueryKey, getSessionQueryKey, } from '../../../utils/queryKeys.js';
26
26
  import { IdFrontImageField } from '../../shared/IdFrontImageField/index.js';
27
27
  import { SelfieImageField } from '../../shared/SelfieImageField/index.js';
28
28
  import { useKYCDefaultContext } from './KYCDefaultContext.js';
@@ -46,7 +46,6 @@ export function IdentityVerification() {
46
46
  toaster.success({
47
47
  title: 'ID Front Image & Selfie Image uploaded successfully',
48
48
  });
49
- sessionStorage.removeItem('hasSeenKycModal');
50
49
  queryClient.setQueryData(getMemberVerificationQueryKey(), (prev) => {
51
50
  if (!prev)
52
51
  return prev;
@@ -70,13 +69,12 @@ export function IdentityVerification() {
70
69
  toaster.success({
71
70
  title: 'ID Front Image & Selfie Image updated successfully',
72
71
  });
73
- sessionStorage.removeItem('hasSeenKycModal');
74
72
  queryClient.setQueryData(getMemberVerificationQueryKey(), (prev) => {
75
73
  if (!prev)
76
74
  return prev;
77
75
  return {
78
76
  ...prev,
79
- status: 'CREATED',
77
+ status: 'UNVERIFIED',
80
78
  };
81
79
  });
82
80
  kyc.setStep(2);
@@ -25,7 +25,7 @@ export function KycOpenOnHomeMount(props) {
25
25
  return;
26
26
  }
27
27
  if (!verificationLoading && !accountLoading && !isSignUpOpen) {
28
- const shouldShowReminder = Boolean(props.isSkippable);
28
+ const shouldShowReminder = Boolean(props.isSkippable) && !isVerificationLocked;
29
29
  const hasSeenKycModal = sessionStorage.getItem('hasSeenKycModal');
30
30
  const isFirstVisit = !hasSeenKycModal;
31
31
  if (isKycCompleted) {
@@ -39,17 +39,11 @@ export function KycOpenOnHomeMount(props) {
39
39
  // Handle rejected verification status
40
40
  else if (isRejected) {
41
41
  if (isFirstVisit) {
42
+ sessionStorage.setItem('hasSeenKycModal', 'true');
42
43
  //show verification locked message after logging in
43
- if (isVerificationLocked) {
44
- setkycAccountVerificationRequired(true);
45
- setkycReminderOpen(false);
46
- setkycOpen(false);
47
- return;
48
- }
49
44
  setkycAccountVerificationRequired(true);
50
45
  setkycReminderOpen(false);
51
46
  setkycOpen(false);
52
- sessionStorage.setItem('hasSeenKycModal', 'true');
53
47
  }
54
48
  else {
55
49
  setkycReminderOpen(shouldShowReminder);
@@ -59,6 +53,7 @@ export function KycOpenOnHomeMount(props) {
59
53
  // Handle unverified verification status
60
54
  else if (isUnverified) {
61
55
  if (isFirstVisit) {
56
+ sessionStorage.setItem('hasSeenKycModal', 'true');
62
57
  //show verification locked message after logging in
63
58
  if (isVerificationLocked) {
64
59
  setkycReminderOpen(true);
@@ -67,7 +62,6 @@ export function KycOpenOnHomeMount(props) {
67
62
  }
68
63
  setkycReminderOpen(false);
69
64
  setkycOpen(true);
70
- sessionStorage.setItem('hasSeenKycModal', 'true');
71
65
  }
72
66
  else {
73
67
  setkycReminderOpen(shouldShowReminder);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.1065",
3
+ "version": "0.0.1067",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",