diff --git a/components/arcade/prizes.js b/components/arcade/prizes.js
index 96f2f9bb6..766200481 100644
--- a/components/arcade/prizes.js
+++ b/components/arcade/prizes.js
@@ -20,6 +20,7 @@ const Prizes = ({
index,
hoursBalance = null,
stock,
+ inStock = true,
...props
}) => {
const parsedFulfillmentDesc = fulfillmentDescription?.replace(
@@ -36,7 +37,7 @@ const Prizes = ({
return (
= 1 ? '#09AFB4' : '#808080',
+ background: ((hoursBalance && hoursBalance / cost >= 1) && inStock) ? '#09AFB4' : '#808080',
borderRadius: '10px',
flexDirection: 'column',
justifyContent: 'space-between',
@@ -61,11 +62,12 @@ const Prizes = ({
>
= 1 ? 'none' : 'grayscale(1)' }}
+ sx={{ height: 'auto', maxWidth: '280px', maxHeight: '250px', filter: ((hoursBalance && hoursBalance / cost >= 1) && inStock) ? 'none' : 'grayscale(1)'}}
alt={text}
+
/>
- {stock && stock != null && stock > 0 && stock <= 100 && (
+ {inStock && stock != null && stock > 0 && stock <= 100 && (
+ {inStock && (
@@ -110,10 +113,10 @@ const Prizes = ({
// only show the quantity dropdown if you have enough hours to buy at least 2 of the item
(hoursBalance ? hoursBalance / cost < 2 : null) ? null : (
)
}
@@ -121,15 +124,15 @@ const Prizes = ({
// only show the buy button if you have enough hours to buy at least 1 of the item
(hoursBalance ? hoursBalance / cost < 1 : null) ? null : (
@@ -138,6 +141,7 @@ const Prizes = ({
)}
+ )}
- {cost} {link ? '🎟️' : cost == 1 ? 'ticket' : 'tickets'}
+ {cost} 🎟️
- {
document.getElementById(`${parsedFullName}-info`).showModal()
}}
- >
+ >
📦
+ )}