Skip to content

Commit

Permalink
Fix: non-member && post comment > 0 && postDetail error
Browse files Browse the repository at this point in the history
  • Loading branch information
cuconveniencestore authored and hookor committed May 31, 2024
1 parent e2febc0 commit 4ed3e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/post/CommentProto.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const CommentProto = ({
}: CommentPrototype) => {
const { signedIn } = useGetSignedIn();
const { userData } = useCachedUserInfo();
const { nickname: myUsername } = userData;
const { nickname: myUsername } = userData || {};
const myComment = nickname === myUsername;
const [profile, setProfile] = useState(profileUrl);
const handleImgError = () => setProfile('');
Expand Down

0 comments on commit 4ed3e48

Please sign in to comment.