[Patcher > UserBadges] Fix

pull/70/head
CanadaHonk 2 years ago committed by GitHub
parent 95d8932df4
commit 1a3c013a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,7 +14,7 @@ export const patch = (name, imgUrl, forIds, clickHandler = (() => {}), { round =
const BadgeClasses = goosemodScope.webpackModules.findByProps('profileBadge24', 'profileBadge22');
const UserProfileBadgeList = goosemodScope.webpackModules.find((m) => m.default && m.default.displayName === 'UserProfileBadgeList');
const UserProfileBadgeList = goosemodScope.webpackModules.findByPropsAll('BadgeSizes')[1];
return PatcherBase.patch(UserProfileBadgeList, 'default', ([ { user, size } ], res) => {
if (!forIds().includes(user.id)) return res;
@ -61,4 +61,4 @@ export const patch = (name, imgUrl, forIds, clickHandler = (() => {}), { round =
return res;
});
};
};

Loading…
Cancel
Save