Skip to content

Commit

Permalink
Fix shop
Browse files Browse the repository at this point in the history
  • Loading branch information
malted committed Nov 13, 2024
1 parent 75b5e11 commit a306a55
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/app/harbor/shop/shop-item-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ export const ShopItemComponent = ({
{filterIndex == 1 ? item.priceUs : item.priceGlobal}
</span>

<span className="text-xs text-gray-600">
({item.minimumHoursEstimated.toFixed(1)} -{' '}
{item.maximumHoursEstimated.toFixed(1)} hours)
</span>
{item.minimumHoursEstimated && item.maximumHoursEstimated ? (
<span className="text-xs text-gray-600">
({Math.round(item.minimumHoursEstimated)} -{' '}
{Math.round(item.maximumHoursEstimated)} hours)
</span>
) : null}
</p>
</CardHeader>
{item.imageUrl && (
Expand Down

0 comments on commit a306a55

Please sign in to comment.