Skip to content
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

fix: Unlink/Connect discord buttons appears for any profiles #2319

Conversation

flacial
Copy link
Member

@flacial flacial commented Sep 16, 2022

Closes #2279

Currently, when you access a profile that isn't yours, it looks like this:

Image image

The buttons show up even though it's not your profile. Merging this PR will fix it by comparing the username in the session to the profile's user username.

Image image

To test it:

  1. Go to /profile/leetcoder
  2. Notice how the CONNECT TO DISCORD button doesn't appear

@vercel
Copy link

vercel bot commented Sep 16, 2022

@flacial is attempting to deploy a commit to the c0d3-prod Team on Vercel.

A member of the Team first needs to authorize it.

@flacial flacial changed the title fix: Unlink/Connect discord buttons appears for everyone fix: Unlink/Connect discord buttons appears for any profiles Sep 16, 2022
@vercel
Copy link

vercel bot commented Sep 16, 2022

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

Name Status Preview Updated
c0d3-app ✅ Ready (Inspect) Visit Preview Sep 17, 2022 at 10:07PM (UTC)

@codecov
Copy link

codecov bot commented Sep 16, 2022

Codecov Report

Merging #2319 (4788e1e) into master (5342e64) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #2319   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          180       180           
  Lines         3140      3148    +8     
  Branches       835       838    +3     
=========================================
+ Hits          3140      3148    +8     
Impacted Files Coverage Δ
__dummy__/sessionData.ts 100.00% <ø> (ø)
components/ProfileImageInfo.tsx 100.00% <100.00%> (ø)

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.

Unlink to discord button should not appear for other users
2 participants