Skip to content

Commit

Permalink
Merge pull request #245 from oreumi-dreamer/jeehyun
Browse files Browse the repository at this point in the history
🐛 이미지를 넣지 않았을 때도 이미지가 존재한다고 인식되는 문제 수정
  • Loading branch information
hanj33 authored Dec 20, 2024
2 parents e74b7b2 + 328d2a9 commit 4f76d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/write/WritePost.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ export default function WritePost({
<span className="sr-only">글 작성</span>
<textarea
placeholder="오늘은 어떤 꿈을 꾸셨나요?"
className={`${styles["text-field-area"]} ${(imageFiles || remainingImages) && styles["has-image"]}`}
className={`${styles["text-field-area"]} ${(imageFiles?.length > 0 || remainingImages?.length > 0) && styles["has-image"]}`}
onChange={handleContentChange}
value={contentValue}
/>
Expand Down

0 comments on commit 4f76d21

Please sign in to comment.