Skip to content

Commit

Permalink
Update base URL and user profile image***
Browse files Browse the repository at this point in the history
***Add console log for user information
  • Loading branch information
kushwahramkumar2003 committed Feb 6, 2024
1 parent 363eb97 commit c3bf821
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/constants/baseUrl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// const baseURL = import.meta.env.VUE_APP_API_URL || "http://localhost:3001";
// const baseURL = "http://localhost:3001";
const baseURL = "https://quiz-app-backend-cloud.azurewebsites.net";
const baseURL = "http://localhost:3001";
// const baseURL = "https://quiz-app-backend-cloud.azurewebsites.net";
export default baseURL;
2 changes: 1 addition & 1 deletion src/pages/admin/Admin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const Admin = () => {
<div className="Admin-manu">
<div className="Grad-logo">
<h1 className="logo-name-for-admin">QuizGrad</h1>
<img src={images.MyAdmin} alt="profile"></img>
<img src={userState.userInfo.avatar ? userState.userInfo.avatar:images.MyAdmin} alt="profile"></img>
<p>Admin</p>
</div>

Expand Down
1 change: 1 addition & 0 deletions src/pages/login/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default function Login() {
},
onSuccess: async (data) => {
const { user } = data;
console.log("User : ",user);

await dispatch(userActions.setUserInfo(user));
await localStorage.setItem("account", JSON.stringify(user));
Expand Down

0 comments on commit c3bf821

Please sign in to comment.