Skip to content

Commit

Permalink
Show 'User Not Found' instead of 'Deleted User'
Browse files Browse the repository at this point in the history
  • Loading branch information
prathercc committed May 14, 2024
1 parent 83fe615 commit 5ebc798
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/features/export/export-slice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,9 @@ export const getFormattedInnerHtml =
borderRadius: "5px",
}}
dangerouslySetInnerHTML={{
__html: `@${nick || displayName || userName || "Deleted User"}`,
__html: `@${
nick || displayName || userName || "User Not Found"
}`,
}}
/>
)
Expand Down
2 changes: 1 addition & 1 deletion src/features/guild/guild-slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const getPreFilterUsers =
(mapping) =>
mapping.id !== currentUser.id &&
Boolean(userMap[mapping.id].guilds[guildId]) &&
mapping.name !== "Deleted User"
mapping.name !== "User Not Found"
),
{ id: currentUser.id, name: currentUser.username },
].sort((a, b) => sortByProperty(a, b, "name", "asc"));
Expand Down

0 comments on commit 5ebc798

Please sign in to comment.