Skip to content

Commit 8242afd

Browse files
authored
Merge pull request #752 from hackclub/malted/nps-fixes
malted/nps fixes
2 parents fb41a45 + a306a55 commit 8242afd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/app/harbor/shop/shop-item-component.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,12 @@ export const ShopItemComponent = ({
7878
{filterIndex == 1 ? item.priceUs : item.priceGlobal}
7979
</span>
8080

81-
<span className="text-xs text-gray-600">
82-
({item.minimumHoursEstimated.toFixed(1)} -{' '}
83-
{item.maximumHoursEstimated.toFixed(1)} hours)
84-
</span>
81+
{item.minimumHoursEstimated && item.maximumHoursEstimated ? (
82+
<span className="text-xs text-gray-600">
83+
({Math.round(item.minimumHoursEstimated)} -{' '}
84+
{Math.round(item.maximumHoursEstimated)} hours)
85+
</span>
86+
) : null}
8587
</p>
8688
</CardHeader>
8789
{item.imageUrl && (

0 commit comments

Comments
 (0)