Skip to content

Commit

Permalink
fix(feed): feed 생성 type 병경
Browse files Browse the repository at this point in the history
  • Loading branch information
kimjh11130 committed Aug 23, 2023
1 parent edafba9 commit ccdd07a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions services/feed/src/pages/write.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ const Write = () => {
content: '',
fileBase64Arr: [],
title: '12345',
type: '',
authorityType: '',
});

useEffect(() => {
sendBridgeEvent('isRightButtonEnabled', {
isEnabled: !!newFeedInfo.content && !!newFeedInfo.type,
isEnabled: !!newFeedInfo.content && !!newFeedInfo.authorityType,
});
}, [!!newFeedInfo.content, !!newFeedInfo.type]);
}, [!!newFeedInfo.content, !!newFeedInfo.authorityType]);

const { mutate: addFeedMutate } = useAddFeed();

Expand Down
2 changes: 1 addition & 1 deletion services/feed/src/write/components/WriteDropdownsBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const WriteDropdownBox = ({ setNewFeedInfo }: WriteDropdownBoxProps) => {
}, [selectedCategory]);

useEffect(() => {
setNewFeedInfo((state) => ({ ...state, type: selectedAuthority.authority }));
setNewFeedInfo((state) => ({ ...state, authorityType: selectedAuthority.authority }));
}, [selectedAuthority]);

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion services/feed/src/write/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export interface PostFeedResponse {
title: string;
content: string;
category_id: string;
type: string;
authorityType: string;
}

0 comments on commit ccdd07a

Please sign in to comment.