mohityadav0903 / Algoders-Community

https://algoders-community.vercel.app
MIT License
15 stars 38 forks source link

Bug: Could Not Fetch User Details in Navbar Due to Wrong JSON Configuration #23

Closed Shubham29012001 closed 2 years ago

Shubham29012001 commented 2 years ago

When we login into the application, the Navbar must print Hello "Username" but instead, it's printing only Hello. Similarly to profile pic and role. It's happening due to the wrong JSON configuration. The current one is user.username, user.role, user.profilePic but instead the working one should be user.others.username, user.others.role, and user. others.profilePic.

Steps to reproduce the behavior:

  1. Go to Login Page
  2. log in to the System
  3. In the Navbar, you will see only Hello but no username, etc are printed due to the wrong JSON configuration.

The expected behavior is to see the correct user role, profilePic, and username.

Current -

image

Expected -

image

Hey @mohityadav0903, please assign it to me. II would like to work on it for GSSoC '22.

Dcode-k commented 2 years ago

hey @Shubham29012001 you can start working on it.

Shubham29012001 commented 2 years ago

Hey @mohityadav0903, I have raised a pull request to fix this bug issue.