Use the correct name for the user popout component

This commit is contained in:
Samuel Elliott 2018-05-29 21:59:54 +01:00
parent 3e41a11197
commit 204dd76e7b
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 2 additions and 2 deletions

View File

@ -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;