Skip to content

Commit

Permalink
Merge pull request #1119 from navgurukul/profile_section_bugs
Browse files Browse the repository at this point in the history
When profile edit is successful, a message will be displayed.
  • Loading branch information
komalahire authored Jul 3, 2024
2 parents 518e120 + 27c0efe commit 7ee7361
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/Profile/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import { useParams, useHistory } from "react-router-dom";

import UnlockOpportunities from "./UnlockOpportunities";
import LastLoginTime from "./LastLoginTime/LastLoginTime";
import { toast } from "react-toastify";

const firebaseConfig = {
apiKey: process.env.REACT_APP_API_KEY,
Expand Down Expand Up @@ -253,6 +254,9 @@ function Profile() {
dispatch(actions.onUserRefreshDataIntent({ token: user.data.token }));
setMsg(false);
setUserData(res.data.user);
toast.success(`Profile Updated Successfully`, {
position: toast.POSITION.BOTTOM_RIGHT,
});
})
.catch((err) => {});
};
Expand Down

0 comments on commit 7ee7361

Please sign in to comment.