Skip to content

Commit ab9bcff

Browse files
authored
feat: 버튼에 할당된 잘못된 상태 수정 (#670)
- isPending과 isError를 반대로 작성한것같아요.
1 parent f32abbe commit ab9bcff

File tree

1 file changed

+2
-2
lines changed
  • fundamentals/today-i-learned/src/pages/timeline/components

1 file changed

+2
-2
lines changed

fundamentals/today-i-learned/src/pages/timeline/components/PostInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ export function PostWriteSection() {
102102
<Button
103103
type="submit"
104104
disabled={
105-
!title.trim() || !content.trim() || createPostMutation.isError
105+
!title.trim() || !content.trim() || createPostMutation.isPending
106106
}
107107
className={submitButton}
108108
>
109-
{createPostMutation.isError ? "작성중..." : "작성하기"}
109+
{createPostMutation.isPending ? "작성중..." : "작성하기"}
110110
</Button>
111111
</div>
112112

0 commit comments

Comments
 (0)