From 5ebc7988a7d55e2cccf86935c055ae26e0a1aade Mon Sep 17 00:00:00 2001 From: prathercc Date: Mon, 13 May 2024 20:20:23 -0700 Subject: [PATCH] Show 'User Not Found' instead of 'Deleted User' --- src/features/export/export-slice.tsx | 4 +++- src/features/guild/guild-slice.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/features/export/export-slice.tsx b/src/features/export/export-slice.tsx index d7457a9e..0ed6e29f 100644 --- a/src/features/export/export-slice.tsx +++ b/src/features/export/export-slice.tsx @@ -694,7 +694,9 @@ export const getFormattedInnerHtml = borderRadius: "5px", }} dangerouslySetInnerHTML={{ - __html: `@${nick || displayName || userName || "Deleted User"}`, + __html: `@${ + nick || displayName || userName || "User Not Found" + }`, }} /> ) diff --git a/src/features/guild/guild-slice.ts b/src/features/guild/guild-slice.ts index 66a42116..d94ddc02 100644 --- a/src/features/guild/guild-slice.ts +++ b/src/features/guild/guild-slice.ts @@ -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"));