Skip to content

Commit 2f3f509

Browse files
fix: correct reversed behavior of enableForOtherUsersProfiles setting (#1264)
This bug was caused by a mistake during the refactoring work in #385. ref: https://github.com/Robot-Inventor/shadowban-scanner/pull/385/files#diff-8906d01dc2e0a44b02d03c3e05e1f02243e9b7a7a316c417fc07f4b4f6cc6f61R49
1 parent 0abc818 commit 2f3f509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ts/core/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Core {
3838

3939
private checkProfile(profile: Profile): void {
4040
const isCurrentUsersProfile = Boolean(document.querySelector("[data-testid='editProfileButton']"));
41-
if (isCurrentUsersProfile && !this.settings.enableForOtherUsersProfiles) return;
41+
if (!isCurrentUsersProfile && !this.settings.enableForOtherUsersProfiles) return;
4242

4343
const profileAnalyzer = analyzeProfileProps(profile.props);
4444
if (!(profileAnalyzer.user.hasAnyProblem || this.settings.showMessagesInUnproblematicProfiles)) return;

0 commit comments

Comments
 (0)