Skip to content

[FIX]: Profile Image Mismatch when searching #1236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Joyal-George-KJ
Copy link
Contributor

Description

Added useEffect to update ImageSrc state when ever data changes.

Related Issues

The issue is this #1235

Changes Proposed

added this below const [imageSrc, setImageSrc] = useState(data.avatar); in component.Profile.jsx

useEffect(() => {
    setImageSrc(data.avatar);
  }, [data])

Checklist

  • I have read and followed the Contribution Guidelines.
  • All new and existing tests passed.
  • I have updated the documentation to reflect the changes I've made.
  • My code follows the code style of this project.
  • The title of my pull request is a short description of the requested changes.

Copy link

vercel bot commented Jul 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dev-find ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2025 7:52pm

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, @Joyal-George-KJ! 🎉 Thank you for opening a pull request. Your contribution is valuable and we appreciate your efforts to improve our project.

Soon the maintainers/owner will review it and provide you with feedback/suggestions.

@Joyal-George-KJ
Copy link
Contributor Author

@shyamtawli requesting review.

@Joyal-George-KJ Joyal-George-KJ changed the title Added: useEffect to change the imageSrc when ever data updates [FIX]: Profile Image Mismatch when searching Jul 26, 2025
@shyamtawli shyamtawli merged commit 51a6195 into shyamtawli:master Jul 28, 2025
4 checks passed
@shyamtawli
Copy link
Owner

@Joyal-George-KJ Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants