aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/viewRaw/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/viewRaw/index.tsx')
-rw-r--r--src/plugins/viewRaw/index.tsx2
1 files changed, 1 insertions, 1 deletions
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;