Changeset ad3c219
- Timestamp:
- 03/01/26 19:48:21 (4 months ago)
- Branches:
- main
- Children:
- 4ceb725
- Parents:
- 9d40151
- File:
-
- 1 edited
-
components/BuildDetailsDialog.tsx (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
components/BuildDetailsDialog.tsx
r9d40151 rad3c219 77 77 } 78 78 }, [open, buildId]); 79 80 79 81 80 const handleFavorite = async () => { … … 125 124 } 126 125 }; 126 127 const isCreator = currentUser && details && details.userId === currentUser; 127 128 128 129 if (!open) return null; … … 305 306 </Box> 306 307 307 {currentUser && details.userId !== currentUser.id&& (308 {currentUser && !isCreator && ( 308 309 <Box sx={{mb: 4, p: 2, border: '1px solid #ddd', borderRadius: 2}}> 309 310 <Typography variant="subtitle2" gutterBottom>Your Review</Typography> … … 327 328 )} 328 329 329 {currentUser && details.userId === currentUser.id&& (330 <Alert severity=" info" sx={{mb: 4}}>330 {currentUser && isCreator && ( 331 <Alert severity="error" sx={{mb: 4}}> 331 332 You cannot rate your own builds. 332 333 </Alert>
Note:
See TracChangeset
for help on using the changeset viewer.
