Fix context menu console error

This commit is contained in:
Maks-s 2019-04-19 22:13:43 +02:00 committed by Samuel Elliott
parent 04fdb7a704
commit f2c461d16e
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ export class DiscordContextMenu {
}
static renderCm(component, args, retVal, res) {
if (!retVal.props || !res.props) return;
if (!retVal.props || !retVal.props.style || !res.props) return;
const { target } = component.props;
const { top, left } = retVal.props.style;
if (!target || !top || !left) return;