Skip to content

Commit

Permalink
feat: MateCommentInput 이미지 없을 경우, 로고 이미지로 대체
Browse files Browse the repository at this point in the history
  • Loading branch information
dydals3440 committed Feb 18, 2024
1 parent ecf5171 commit e45be93
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useRef, useState } from 'react';
import toast from 'react-hot-toast';

import * as S from './MateCommentInput.style';
import Logo from '/images/mypage/MyPageLogo.svg';
import { postMateRuleComment } from '@/apis/request/mate';
import { useGetMyProfile } from '@/hooks/profile/queries/useGetMyProfile';
import { useMutation, useQueryClient } from '@tanstack/react-query';
Expand Down Expand Up @@ -44,7 +45,7 @@ const MateCommentInput = ({ ruleId }) => {

return (
<S.Container>
<S.Avatar src={myProfile} />
<S.Avatar src={myProfile ? myProfile : Logo} />
<S.CommentInput
id="content"
rows={1}
Expand Down

0 comments on commit e45be93

Please sign in to comment.