@opexa/portal-components 0.0.770 → 0.0.772

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.
@@ -31,7 +31,7 @@ export function KycOpenOnHomeMount(props) {
31
31
  }
32
32
  // Handle rejected verification status
33
33
  else if (isRejected) {
34
- if (isFirstVisit) {
34
+ if (isFirstVisit && !shouldShowReminder) {
35
35
  setkycReminderOpen(false);
36
36
  setkycOpen(true);
37
37
  sessionStorage.setItem('hasSeenKycModal', 'true');
@@ -43,7 +43,7 @@ export function KycOpenOnHomeMount(props) {
43
43
  }
44
44
  // Handle unverified verification status
45
45
  else if (isUnverified) {
46
- if (isFirstVisit) {
46
+ if (isFirstVisit && !shouldShowReminder) {
47
47
  setkycReminderOpen(false);
48
48
  setkycOpen(true);
49
49
  sessionStorage.setItem('hasSeenKycModal', 'true');
@@ -119,7 +119,7 @@ export function MessagesPopup() {
119
119
  };
120
120
  const sessionQuery = useSessionQuery();
121
121
  const session = sessionQuery.data;
122
- const isKycClosed = !globalStore.kyc.open || !globalStore.kycReminder.open;
122
+ const isKycClosed = !globalStore.kyc.open && !globalStore.kycReminder.open;
123
123
  return (_jsx(Dialog.Root, { open: disclosure.open && !paused && isKycClosed, onOpenChange: (details) => {
124
124
  disclosure.setOpen(details.open);
125
125
  }, lazyMount: true, unmountOnExit: true, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, { className: "!z-[calc(var(--z-dialog)+3)]" }), _jsx(Dialog.Positioner, { className: "!z-[calc(var(--z-dialog)+4)] flex items-center justify-center", children: _jsxs(Dialog.Content, { className: "mx-auto max-h-[80vh] min-w-[21.438rem] max-w-[21.438rem] overflow-y-auto rounded-xl p-3xl lg:min-w-[25rem] lg:max-w-[25rem]", children: [_jsx(Dialog.CloseTrigger, { children: _jsx(XIcon, {}) }), _jsxs(Carousel.Root, { page: index, onPageChange: (details) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.770",
3
+ "version": "0.0.772",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",