Skip to content

Commit

Permalink
120623 dep 2 (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaynzhel authored Dec 6, 2023
2 parents 22e5742 + 5414eca commit cf00740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions client/src/components/post/like/CommentLikes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Like, LikePostRequest } from "../../../interfaces/interfaces";
import {
getAuthorIdFromResponse,
getCodeFromObjectId,
isApiPathNoSlash,
isApiPathNoSlash, isHostLocal,
isUrlIdLocal
} from "../../../utils/responseUtils";
import { toast } from "react-toastify";
Expand All @@ -26,8 +26,7 @@ const CommentLikes = ({
}) => {
const [commentLikes, setCommentLikes] = useState<Like[]>([]);
const [isUserLiked, setIsUserLiked] = useState<boolean>(false);
const isLocal = isUrlIdLocal(comment.id);
const commentId = getAuthorIdFromResponse(comment.id);
const isLocal = isHostLocal(comment.author.host);
const userData = getUserData();

const handleLike = async () => {
Expand Down
1 change: 0 additions & 1 deletion client/src/components/post/like/PostLikes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const PostLikes = ({
}) => {
const [postLikes, setPostLikes] = useState<Like[]>([]);
const [isUserLiked, setIsUserLiked] = useState<boolean>(false);
const postId = getAuthorIdFromResponse(post.id);
const isLocal = isHostLocal(post.author.host);
const userData = getUserData();

Expand Down

0 comments on commit cf00740

Please sign in to comment.