Skip to content

Commit

Permalink
Merge pull request #752 from hackclub/malted/nps-fixes
Browse files Browse the repository at this point in the history
malted/nps fixes
  • Loading branch information
malted authored Nov 13, 2024
2 parents fb41a45 + a306a55 commit 8242afd
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 8242afd

Please sign in to comment.