Skip to content

Commit

Permalink
team number is edited
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbandrews committed Oct 25, 2023
1 parent a4a8e3a commit 84af870
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/Profile/EditProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,13 @@ export default function EditProfile({ token, pk, setAuth }) {
}
)
.then((res) => {
if (skills && aboutMe) {
if (isMentor) {
axios.patch(
`${process.env.REACT_APP_BE_URL}/mentorinfoupdate/`,
{
skills: skills,
about_me: aboutMe,
team_number: teamNumber,
},
{
headers: {
Expand All @@ -166,7 +167,7 @@ export default function EditProfile({ token, pk, setAuth }) {
},
}
);
} else if (teamNumber) {
} else if (isMentee) {
axios.patch(
`${process.env.REACT_APP_BE_URL}/menteeinfoupdate/`,
{
Expand Down

0 comments on commit 84af870

Please sign in to comment.