diff --git a/web/pages/[username]/[contractSlug].tsx b/web/pages/[username]/[contractSlug].tsx index 9b8b21cb..2fb02642 100644 --- a/web/pages/[username]/[contractSlug].tsx +++ b/web/pages/[username]/[contractSlug].tsx @@ -160,6 +160,7 @@ export function ContractPageContent( const { backToHome, comments } = props const contract = useContractWithPreload(props.contract) ?? props.contract const user = useUser() + const isCreator = user?.id === contract.creatorId usePrefetch(user?.id) useTracking( 'view market', @@ -204,7 +205,18 @@ export function ContractPageContent( }) return ( - }> + + + {isCreator && ( + + + + )} + + } + > {showConfetti && ( )} @@ -273,7 +285,7 @@ export function ContractPageContent( comments={comments} /> - + {!isCreator && } ) @@ -294,7 +306,7 @@ const RecommendedContractsWidget = memo( return null } return ( - + <ContractsGrid contracts={recommendations}