Skip to content

Commit d725bd2

Browse files
authored
Merge pull request #403 from cornell-dti/fix-prod-error
fix attempt 2
2 parents 0f86a3c + dd6c4cb commit d725bd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/components/Review/Review.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)