Skip to content

Commit 804d74b

Browse files
authored
Fix isPrivateUserProfile false positive on isOwnUserProfile (#147)
1 parent 4d996bb commit 804d74b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ addTests('isGistProfile', [
585585

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

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

590590
export const isUserProfileMainTab = (): boolean =>
591591
isUserProfile()

0 commit comments

Comments
 (0)