Skip to content

Commit 7ad2ede

Browse files
Merge pull request #3053 from OneCommunityGlobal/geeta/fix-category
Geeta - Fixed category bug for Projects
2 parents 121778a + 7983ce0 commit 7ad2ede

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/UserProfile/TeamsAndProjects/AddProjectPopup.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,13 @@ const AddProjectPopup = React.memo(props => {
7373

7474
const finishFetch = status => {
7575
setIsOpenDropdown(false);
76+
7677
toast.success(
7778
status === 200
7879
? 'Project created successfully'
7980
: 'Project created successfully, but it is not possible to retrieve the new project.',
8081
);
82+
8183
setDropdownText(dropdownText);
8284
};
8385

@@ -100,7 +102,7 @@ const AddProjectPopup = React.memo(props => {
100102

101103
const newProject = {
102104
projectName: searchText,
103-
category: dropdownText,
105+
projectCategory: dropdownText,
104106
isActive: true,
105107
};
106108

0 commit comments

Comments
 (0)