File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
frontend/src/components/Review Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -263,8 +263,8 @@ const ReviewComponent = ({
263263 const isMobile = useMediaQuery ( '(max-width:600px)' ) ;
264264 const isSmallScreen = useMediaQuery ( '(max-width:391px)' ) ;
265265 const toastTime = 3500 ;
266- const isSelfReview = user && review . userId === user . uid ;
267- const likeDisabled = ! ! likeLoading || ! ! isSelfReview ;
266+ // const isSelfReview = user && review.userId === user.uid;
267+ // const likeDisabled = !!likeLoading || !!isSelfReview;
268268
269269 const updateReviewData = ( ) => {
270270 get < ReviewWithId > ( `/api/review-by-id/${ review . id } ` , {
@@ -706,7 +706,7 @@ const ReviewComponent = ({
706706 onClick = { ( ) => likeHandler ( review . id ) }
707707 className = { button }
708708 size = "small"
709- disabled = { likeDisabled }
709+ disabled = { likeLoading || user ?. uid === review . userId }
710710 style = { liked ? { color : colors . red1 } : { color : colors . gray1 } }
711711 >
712712 < img
You can’t perform that action at this time.
0 commit comments