@opexa/portal-components 0.0.1056 → 0.0.1058

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 ||
155
- (memberVerification.status !== 'APPROVED' &&
156
- memberVerification.status !== 'VERIFIED' &&
157
- memberVerification.status !== 'PENDING') ||
158
- allowUnverifiedAccounts ||
159
- restrictWithdrawalsToVerifiedMembers) {
160
- return _jsx(AccountVerificationRequired, {});
161
- }
162
- if (memberVerification.status === 'PENDING') {
154
+ if (memberVerification?.status === 'PENDING') {
163
155
  return _jsx(_AccountVerificationPending, {});
164
156
  }
157
+ if (restrictWithdrawalsToVerifiedMembers &&
158
+ (!memberVerification ||
159
+ (memberVerification.status !== 'APPROVED' &&
160
+ memberVerification.status !== 'VERIFIED'))) {
161
+ return _jsx(AccountVerificationRequired, {});
162
+ }
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.1058",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",