Fix ProfileBadge console error

This commit is contained in:
Maks-s 2019-07-30 17:47:24 +02:00 committed by Samuel Elliott
parent 4be9c8b29a
commit 3022646579
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 1 additions and 2 deletions

View File

@ -71,8 +71,7 @@ export default class extends Module {
const c = contributors.find(c => c.id === user.id);
if (!c) return;
const flex = retVal.props.children.props.children[1].props.children[0];
const nameTag = flex.props.children[0];
const nameTag = retVal.props.children[1].props.children[0].props.children[0];
nameTag.type = this.PatchedNameTag || nameTag.type;
});