From 3022646579d823858d174c4c4085c4e0e76cb36a Mon Sep 17 00:00:00 2001 From: Maks-s Date: Tue, 30 Jul 2019 17:47:24 +0200 Subject: [PATCH] Fix ProfileBadge console error --- client/src/ui/profilebadges.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/ui/profilebadges.js b/client/src/ui/profilebadges.js index 015bfc0b..31831371 100644 --- a/client/src/ui/profilebadges.js +++ b/client/src/ui/profilebadges.js @@ -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; });