diff --git a/web/components/contract-feed.tsx b/web/components/contract-feed.tsx index 9021e8d6..6c068116 100644 --- a/web/components/contract-feed.tsx +++ b/web/components/contract-feed.tsx @@ -86,6 +86,8 @@ function FeedBet(props: { activityItem: any }) { const { id, contractId, amount, outcome, createdTime } = activityItem const user = useUser() const isCreator = user?.id == activityItem.userId + // The creator can comment if the bet was posted in the last hour + const canComment = isCreator && Date.now() - createdTime < 60 * 60 * 1000 const [comment, setComment] = useState('') async function submitComment() { @@ -106,7 +108,7 @@ function FeedBet(props: { activityItem: any }) { {isCreator ? 'You' : 'A trader'} placed{' '} {formatMoney(amount)} on {' '} - {isCreator && ( + {canComment && ( // Allow user to comment in an textarea if they are the creator