Skip to content

Commit 0bc5089

Browse files
committed
fix: Show dedicated limits
1 parent 121c18d commit 0bc5089

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/features/clusters/upsert/components/ResourcesPerInstance.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function ResourcesPerInstance({ planLimits, resourcesPerInstance, selecte
2626
const expirationMonths = isPositive(planLimits?.expirationMonths) && planLimits.expirationMonths < 1000 && planLimits.expirationMonths;
2727
const multiplier = selectedRegion?.purchasedBlockMultiplier ?? 1;
2828
const rows = useMemo(() => {
29-
if (!planLimits || !resourcesPerInstance) {
29+
if (!planLimits) {
3030
return [];
3131
}
3232
return [
@@ -86,7 +86,7 @@ export function ResourcesPerInstance({ planLimits, resourcesPerInstance, selecte
8686
label: 'Application Compute Hours',
8787
value: `${humanNumber(planLimits.applicationComputeHours * 60 * multiplier)}`,
8888
},
89-
isPositive(resourcesPerInstance?.storageGb) && {
89+
resourcesPerInstance && isPositive(resourcesPerInstance.storageGb) && {
9090
label: 'Storage',
9191
value: `${humanFileSize(resourcesPerInstance.storageGb * 1000_000_000)}`,
9292
},
@@ -97,7 +97,7 @@ export function ResourcesPerInstance({ planLimits, resourcesPerInstance, selecte
9797
].filter(excludeFalsy);
9898
}, [expirationMonths, planLimits, resourcesPerInstance, multiplier]);
9999

100-
if (!planLimits || !resourcesPerInstance) {
100+
if (!planLimits) {
101101
// The user hasn't selected a plan yet. so let's not show anything for the ResourcesPerInstance space yet.
102102
return '';
103103
}

0 commit comments

Comments
 (0)