Skip to content

Commit d013db4

Browse files
committed
fix resources price NaN
1 parent e9f7ab6 commit d013db4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hooks/cloud/prices.js

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ function useCloudPrices(
115115
const price = [];
116116
for (const resource of plan.resources ?? []) {
117117
const key = resource.key.toLowerCase();
118+
resource.price = resource.price || 0;
118119

119120
if (key.includes("ip")) {
120121
const { count } =

0 commit comments

Comments
 (0)