From f32d25b641dc89b623ec0930396827bfcf4921b2 Mon Sep 17 00:00:00 2001 From: AutumnVN Date: Tue, 26 Sep 2023 06:48:09 +0700 Subject: viewRaw, viewIcons, permissionsViewer: fix some edge cases (#1745) Co-authored-by: V --- src/plugins/viewRaw/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/viewRaw') diff --git a/src/plugins/viewRaw/index.tsx b/src/plugins/viewRaw/index.tsx index 6012764..f516b5d 100644 --- a/src/plugins/viewRaw/index.tsx +++ b/src/plugins/viewRaw/index.tsx @@ -119,7 +119,7 @@ const settings = definePluginSettings({ function MakeContextCallback(name: string) { const callback: NavContextMenuPatchCallback = (children, props) => () => { - if (name === "Guild" && !props.guild) return; + if ((name === "Guild" && !props.guild) || (name === "User" && !props.user)) return; const lastChild = children.at(-1); if (lastChild?.key === "developer-actions") { const p = lastChild.props; -- cgit