Skip to content

[Bug]: Profile avatar doesn't update across tabs after changing it in settings #550

Description

@Priyanka0205-CSE

Bug Description

Hey, I noticed a small but annoying bug with profile avatars.
When I update my profile picture from the settings page, it changes on the current tab just fine. But if I have another tab open with RankerHub, it still shows my old avatar even after the update goes through. The only way to fix it is to manually refresh the other tab.
Looks like the navbar and sidebar are pulling the avatar from the initial load and not listening to changes in Firestore after that.
Steps to reproduce:

Open RankerHub in two tabs
Go to settings in one tab and update your profile picture
Switch to the second tab — old avatar still showing

Expected: Avatar updates everywhere without needing a manual refresh

Environment: Chrome, logged in with GitHub OAuth

Metadata

Metadata

Labels

NSoC'26NSoC 2026backendBackend/Firebase related changesbugSomething isn't workingfrontendFrontend related changes (HTML/CSS/JS/React)gssocGirlScript Summer of Codegssoc26GirlScript Summer of Code 2026needs-reviewIssue needs reviewneeds-triagensocNSoC

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions