Use the correct name for the user popout component
This commit is contained in:
parent
3e41a11197
commit
204dd76e7b
|
@ -416,8 +416,8 @@ export class ReactAutoPatcher {
|
|||
static async patchUserPopout() {
|
||||
const selector = '.' + WebpackModules.getModuleByProps(['userPopout', 'headerNormal']).userPopout;
|
||||
|
||||
this.UserProfileModal = await ReactComponents.getComponent('UserPopout', { selector });
|
||||
this.unpatchUserProfileModal = MonkeyPatch('BD:ReactComponents', this.UserProfileModal.component.prototype).after('render', (component, args, retVal) => {
|
||||
this.UserPopout = await ReactComponents.getComponent('UserPopout', { selector });
|
||||
this.unpatchUserPopout = MonkeyPatch('BD:ReactComponents', this.UserPopout.component.prototype).after('render', (component, args, retVal) => {
|
||||
const { user, guild, guildMember } = component.props;
|
||||
if (!user) return;
|
||||
retVal.props['data-user-id'] = user.id;
|
||||
|
|
Loading…
Reference in New Issue