Skip to content

Commit

Permalink
Fix isPrivateUserProfile false positive on isOwnUserProfile (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng committed Aug 5, 2022
1 parent 4d996bb commit 804d74b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ addTests('isGistProfile', [

export const isUserProfile = (): boolean => isProfile() && !isOrganizationProfile();

export const isPrivateUserProfile = (): boolean => isUserProfile() && !exists('.user-following-container');
export const isPrivateUserProfile = (): boolean => isUserProfile() && !exists('.UnderlineNav-item[href$="tab=stars"]');

export const isUserProfileMainTab = (): boolean =>
isUserProfile()
Expand Down

0 comments on commit 804d74b

Please sign in to comment.