diff --git a/client/src/modules/reactcomponents.js b/client/src/modules/reactcomponents.js index a20fb5ff..01102992 100644 --- a/client/src/modules/reactcomponents.js +++ b/client/src/modules/reactcomponents.js @@ -301,9 +301,9 @@ export class ReactAutoPatcher { this.ChannelMember.component = await ReactComponents.getComponent('ChannelMember'); this.ChannelMember.component.on('render', ({ component, retVal, p }) => { const { user, isOwner } = component.props; - retVal.props['data-member-id'] = user.id; - if (user.id === DiscordApi.currentUser.id) retVal.props.className += ' bd-isCurrentUser'; - if (isOwner) retVal.props.className += ' bd-isOwner'; + retVal.props.children.props['data-member-id'] = user.id; + if (user.id === DiscordApi.currentUser.id) retVal.props.children.props.className += ' bd-isCurrentUser'; + if (isOwner) retVal.props.children.props.className += ' bd-isOwner'; }); }