diff --git a/components/arcade/prizes.js b/components/arcade/prizes.js
index fd6533b64..ea7ae30b1 100644
--- a/components/arcade/prizes.js
+++ b/components/arcade/prizes.js
@@ -19,6 +19,7 @@ const Prizes = ({
onQuantityChange,
index,
hoursBalance,
+ Stock,
...props
}) => {
const parsedFulfillmentDesc = fulfillmentDescription?.replace(
@@ -63,6 +64,24 @@ const Prizes = ({
alt={text}
/>
+ {Stock && Stock != null && Stock > 0 && Stock <= 100 && (
+
+ Only {Stock} left!
+
+ )}
handleQuantityChange(item.id, q)} // Pass handler to update quantity
hoursBalance={hoursBalance}
+ Stock={item['Stock']}
/>
))}
diff --git a/pages/arcade/[userAirtableID]/shop.js b/pages/arcade/[userAirtableID]/shop.js
index c71628e81..3b60630ba 100644
--- a/pages/arcade/[userAirtableID]/shop.js
+++ b/pages/arcade/[userAirtableID]/shop.js
@@ -87,7 +87,8 @@ export async function getStaticProps({params}) {
'Cost Hours': item['Cost Hours'] || 0,
id: item.id,
'Image URL': item['Image URL'] || null,
- 'Max Order Quantity': item['Max Order Quantity'] || 1
+ 'Max Order Quantity': item['Max Order Quantity'] || 1,
+ Stock: item['Stock'] || null
}))
props.availableItems = availableItems
}),