{parsedSubText?.length > 0 &&
parsedFulfillmentDesc?.length > 0 && (
)}
{link && (
{
// only show the quantity dropdown if you have enough hours to buy at least 2 of the item
(
hoursBalance
? hoursBalance / cost >= 2
? stock !== 0
: null
: null
) ? (
) : null
}
{
// only show the buy button if you have enough hours to buy at least 1 of the item
(
hoursBalance
? hoursBalance / cost >= 1
? stock !== 0
: null
: null
) ? (
) : null
}
)}
You can order up to{' '}
{Math.min(quantity, Math.floor(hoursBalance / cost))} of
these