From 708f7fdc5343789f3a552d32b7ee2c0ce21627c6 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 3 Feb 2020 14:38:24 +0100 Subject: [PATCH] Update BDFDB.js --- Plugins/BDFDB.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js index 8f5adc81d4..7fffe1d78c 100644 --- a/Plugins/BDFDB.js +++ b/Plugins/BDFDB.js @@ -9747,14 +9747,15 @@ }; InternalBDFDB.processMessageHeader = function (e) { if (e.instance.props.message && e.instance.props.message.author) { - let avatarWrapper = BDFDB.ReactUtils.getValue(e, "returnvalue.props.children.0.props.children"); + let avatarWrapper = BDFDB.ReactUtils.getValue(e, "returnvalue.props.children.0"); if (avatarWrapper && avatarWrapper.props && typeof avatarWrapper.props.children == "function") { let renderChildren = avatarWrapper.props.children; avatarWrapper.props.children = (...args) => { let renderedChildren = renderChildren(...args); InternalBDFDB._processAvatarRender(e.instance.props.message.author, renderedChildren); - return renderChildren; + return renderedChildren; }; + console.log(avatarWrapper); } } };