Skip to content

Commit 5f7b822

Browse files
Merge pull request #407 from HarperDB/stage
Merge stage into main - unpaid ram update
2 parents 2c20b30 + 4edca4b commit 5f7b822

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "harperdb-studio",
3-
"version": "4.6.2",
3+
"version": "4.6.3",
44
"description": "A UI for HarperDB",
55
"deploymentUrl": "studio.harperdb.io",
66
"private": true,
@@ -86,4 +86,4 @@
8686
"typescript": "^5.6.2"
8787
},
8888
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
89-
}
89+
}

src/components/instance/config/UpdateRAM.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function UpdateRAM({ setInstanceAction, showPrepaidCompute }) {
2929
const is_wavelength = useStoreState(instanceState, (s) => s.wavelength_zone_id);
3030
const compute_subscription_id = useStoreState(instanceState, (s) => s.compute_subscription_id);
3131
const is_being_modified = useStoreState(instanceState, (s) => !['CREATE_COMPLETE', 'UPDATE_COMPLETE'].includes(s.status));
32+
const is_unpaid = useStoreState(appState, (s) => s.customer?.is_unpaid)
3233

3334
const filteredProducts = useStoreState(appState, (s) => s.products[is_local ? 'local_compute' : is_wavelength ? 'wavelength_compute' : 'cloud_compute']);
3435
const filteredSubscriptions = useStoreState(appState, (s) =>
@@ -128,7 +129,7 @@ function UpdateRAM({ setInstanceAction, showPrepaidCompute }) {
128129
onClick={() => navigate(`/o/${customer_id}/billing?returnURL=/${customer_id}/i/${compute_stack_id}/config`)}
129130
/>
130131
</div>
131-
) : hasChanged && (storage?.storage_price || formData?.compute_price) && !hasCard ? (
132+
) : hasChanged && (storage?.storage_price || formData?.compute_price) && !hasCard && !is_unpaid ? (
132133
<VisitCard
133134
disabled={!hasChanged || formState.submitted}
134135
label="Add Credit Card To Account"

0 commit comments

Comments
 (0)