Skip to content

Commit

Permalink
[!HOTFIX] 커뮤니티 이슈 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
imddoy committed Jan 24, 2025
1 parent d985e94 commit 996e94e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion src/components/common/banner/ToolListBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ const ToolListBanner = ({ originTool, forCommunity = false, onToolSelect = () =>
const [initialTool, setInitialTool] = useState<OriginToolType>();

useEffect(() => {
setInitialTool(originTool);
if (originTool?.toolId === null) {
setToolState((prev) => ({
...prev,
isFree: true,
selectedTool: null,
}));
}
}, [originTool]);

// 툴 카테고리(아코디언) 조회
Expand Down
2 changes: 1 addition & 1 deletion src/pages/communityModify/CommunityModify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const CommunityModify = () => {

return (
<>
<Title title={`(수정중)${post.title}`} />
<Title title={`(수정중) ${post.title}`} />
<S.WriteWrapper>
<S.WriteTitle>글 수정하기</S.WriteTitle>
<S.WriteContainer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const WritingTitle = ({ originTitle, setTitle }: WritingTitleProps) => {
const handleTextChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const inputText = e.target.value;

if (inputText.length <= MAX_CHAR_LIMIT) {
if (inputText.length < MAX_CHAR_LIMIT) {
setText(inputText);
setTitle(inputText);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const WritingTitle = ({ setTitle }: WritingTitleProps) => {
const handleTextChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const inputText = e.target.value;

if (inputText.length <= MAX_CHAR_LIMIT) {
if (inputText.length < MAX_CHAR_LIMIT) {
setText(inputText);
setTitle(inputText);
}
Expand Down

0 comments on commit 996e94e

Please sign in to comment.