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(ProfilePage): should see other users' profile page #588

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

belong112
Copy link
Contributor

explaination

I found that latestSlug returns null when the user hasn't set their slug yet. Therefore, I changed latestSlug === undefined to !latestSlug && latestSlug !== ''
Additionally, if the user resets their slug to an empty string, it will fail the condition. To address this, I changed the userId to ensure redirection leads to the user's page instead of "my" page.

preview

截圖 2024-12-21 上午1 59 54 able to see other user's profile page

@coveralls
Copy link

Coverage Status

coverage: 71.733%. remained the same
when pulling 1cf6711 on belong112:bugfix/issue#587
into d5a4be4 on cofacts:master.

Copy link
Member

@MrOrz MrOrz left a comment

Choose a reason for hiding this comment

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

LGTM! Let's try it on staging now

@MrOrz MrOrz merged commit 9f97ed6 into cofacts:master Dec 22, 2024
2 checks passed
@MrOrz
Copy link
Member

MrOrz commented Jan 10, 2025

We found that the comments tab under user profile page is broken, not sure if it is related: #594

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.

3 participants