@opexa/portal-components 0.0.1056 → 0.0.1057

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.
@@ -151,17 +151,15 @@ export function Withdrawal() {
151
151
  if (parseDecimal(wallet?.balance, 0) < 1) {
152
152
  return _jsx(InsufficientBalance, {});
153
153
  }
154
+ if (memberVerification?.status === 'PENDING') {
155
+ return _jsx(_AccountVerificationPending, {});
156
+ }
154
157
  if (!memberVerification ||
155
158
  (memberVerification.status !== 'APPROVED' &&
156
- memberVerification.status !== 'VERIFIED' &&
157
- memberVerification.status !== 'PENDING') ||
158
- allowUnverifiedAccounts ||
159
- restrictWithdrawalsToVerifiedMembers) {
159
+ memberVerification.status !== 'VERIFIED') ||
160
+ (!allowUnverifiedAccounts && restrictWithdrawalsToVerifiedMembers)) {
160
161
  return _jsx(AccountVerificationRequired, {});
161
162
  }
162
- if (memberVerification.status === 'PENDING') {
163
- return _jsx(_AccountVerificationPending, {});
164
- }
165
163
  if (enabledPaymentMethods.length <= 0) {
166
164
  return _jsx(NoAvailablePaymentMethods, {});
167
165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.1056",
3
+ "version": "0.0.1057",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",