Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aahei committed Nov 15, 2024
2 parents 8b45251 + 1a70287 commit ebe88e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ProductDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export default function ProductDetails({ data }) {
return "green";
case 'ng':
return "red";
case 'warning':
return "yellow";
default:
return "gray";
}
Expand Down Expand Up @@ -297,7 +299,7 @@ export default function ProductDetails({ data }) {
</Text>
<Wrap spacing={2}>
{Object.entries(selectedProduct.features).map(([feature, status]) =>
status !== 'unknown' ? (
status !== null ? (
<WrapItem key={feature}>
<Tag
colorScheme={getFeatureTagColor(status)}
Expand Down

0 comments on commit ebe88e6

Please sign in to comment.