Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update frontend/src/pages/NewScan.jsx
Browse files
frontend/src/pages/NewScan.jsx
CHANGED
|
@@ -316,8 +316,9 @@ export const NewScan = () => {
|
|
| 316 |
const isEnabled = config ? config.is_enabled : true;
|
| 317 |
|
| 318 |
const isSelected = scanType === method.id;
|
| 319 |
-
const
|
| 320 |
-
const
|
|
|
|
| 321 |
const isLocked = isTierLocked || isQuotaExceeded;
|
| 322 |
|
| 323 |
if (!isEnabled) {
|
|
|
|
| 316 |
const isEnabled = config ? config.is_enabled : true;
|
| 317 |
|
| 318 |
const isSelected = scanType === method.id;
|
| 319 |
+
const isQuotaAvailable = hasQuota(method.id);
|
| 320 |
+
const isTierLocked = !isQuotaAvailable && (userTierLevel < getTierLevel(requiredTier));
|
| 321 |
+
const isQuotaExceeded = !isQuotaAvailable;
|
| 322 |
const isLocked = isTierLocked || isQuotaExceeded;
|
| 323 |
|
| 324 |
if (!isEnabled) {
|