Skip to content

Commit

Permalink
cleared lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kea-roy committed Feb 16, 2025
1 parent ee3ec2e commit b4024c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/Review/Review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import getPriceRange from '../../utils/priceRange';
import OptionMenu from '../utils/OptionMenu';
import { ReactComponent as BedIcon } from '../../assets/bed-icon.svg';
import { ReactComponent as MoneyIcon } from '../../assets/money-icon.svg';
import { exists } from 'fs';

type Props = {
readonly review: ReviewWithId;
Expand Down Expand Up @@ -475,7 +474,7 @@ const ReviewComponent = ({
*/
const likeHandler = async (id: string) => {
if (user) {
if (!(review.userId != null && review.userId == user.uid)) {
if (!(review.userId != null && review.userId === user.uid)) {
(liked ? removeLike : addLike)(id);
}
} else {
Expand Down

0 comments on commit b4024c7

Please sign in to comment.