Skip to content

Commit

Permalink
fix: 댓글 이슈 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
100Gyeon committed Dec 9, 2023
1 parent a6eb4a0 commit bd2c7df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/components/feed/FeedCommentInput/FeedCommentInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ const FeedCommentInput = forwardRef<HTMLTextAreaElement, FeedCommentInputProps>(
event.preventDefault();

if (!comment.trim()) return;
onSubmit(comment).then(() => setComment(''));
onSubmit(comment).then(() => {
setComment('');
setIsFocused(false);
});
};

return (
Expand All @@ -37,7 +40,6 @@ const FeedCommentInput = forwardRef<HTMLTextAreaElement, FeedCommentInputProps>(
value={comment}
onChange={handleChange}
onFocus={() => setIsFocused(true)}
onBlur={() => setIsFocused(false)}
placeholder={`${writerName}님의 피드에 댓글을 남겨보세요!`}
rows={1}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/util/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const setAccessTokens = async () => {
// NOTE: development 환경에서는 테스트 토큰을 사용한다.
if (process.env.NODE_ENV === 'development') {
crewToken.set(
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoi7J207J6s7ZuIIiwiaWQiOjI1NywiaWF0IjoxNjgxODE5NTcxLCJleHAiOjE3MTc4MTk1NzF9.JVG-xzOVikIbX7vj_cZig_TTHxM-EzMgjO-_VGRbLTs'
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoi6rCV7JiB7JqwIiwiaWQiOjI1MywiaWF0IjoxNzAyMTMxMzIyLCJleHAiOjE3MzgxMzEzMjJ9.2y5MApbYgcUnrjaPyfZN_bqpl6LR4RNGA1jvSYivVIk'
);
playgroundToken.set(
'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyMyIsImV4cCI6MTY4MjI0NzIzNn0.jPK_OTNXVNvnVFkbdme6tfABsdryUFgXEYOYGCAxdPc'
Expand Down

0 comments on commit bd2c7df

Please sign in to comment.