We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fb41a45 + a306a55 commit 8242afdCopy full SHA for 8242afd
src/app/harbor/shop/shop-item-component.js
@@ -78,10 +78,12 @@ export const ShopItemComponent = ({
78
{filterIndex == 1 ? item.priceUs : item.priceGlobal}
79
</span>
80
81
- <span className="text-xs text-gray-600">
82
- ({item.minimumHoursEstimated.toFixed(1)} -{' '}
83
- {item.maximumHoursEstimated.toFixed(1)} hours)
84
- </span>
+ {item.minimumHoursEstimated && item.maximumHoursEstimated ? (
+ <span className="text-xs text-gray-600">
+ ({Math.round(item.minimumHoursEstimated)} -{' '}
+ {Math.round(item.maximumHoursEstimated)} hours)
85
+ </span>
86
+ ) : null}
87
</p>
88
</CardHeader>
89
{item.imageUrl && (
0 commit comments