Skip to content

Commit dbf78f3

Browse files
committed
linter
1 parent af042a8 commit dbf78f3

File tree

2 files changed

+15
-142
lines changed

2 files changed

+15
-142
lines changed

dashboard/ai-analytics/src/app/components/BarList.tsx

Lines changed: 0 additions & 139 deletions
This file was deleted.

dashboard/ai-analytics/src/app/components/CostPredictionModal.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,11 @@ export default function CostPredictionModal({
925925
{entry.name === 'actualCost' ? 'Actual' : 'Predicted'}:
926926
</span>
927927
<span className="text-white ml-1">
928-
${entry.value?.toFixed(2)}
928+
${typeof entry.value === 'number'
929+
? entry.value.toFixed(2)
930+
: Array.isArray(entry.value)
931+
? entry.value.join(', ')
932+
: entry.value}
929933
</span>
930934
</div>
931935
))}
@@ -956,7 +960,11 @@ export default function CostPredictionModal({
956960
/>
957961
<span className="text-gray-400">{entry.name}:</span>
958962
<span className="text-white ml-1">
959-
${entry.value?.toFixed(2)}
963+
${typeof entry.value === 'number'
964+
? entry.value.toFixed(2)
965+
: Array.isArray(entry.value)
966+
? entry.value.join(', ')
967+
: entry.value}
960968
</span>
961969
</div>
962970
))}
@@ -987,7 +995,11 @@ export default function CostPredictionModal({
987995
/>
988996
<span className="text-gray-400">Cost:</span>
989997
<span className="text-white ml-1">
990-
${entry.value?.toFixed(2)}
998+
${typeof entry.value === 'number'
999+
? entry.value.toFixed(2)
1000+
: Array.isArray(entry.value)
1001+
? entry.value.join(', ')
1002+
: entry.value}
9911003
</span>
9921004
</div>
9931005
))}

0 commit comments

Comments
 (0)