From 43cdfc55e03bdbe9c3038d2fa156f56db4a7a7ef Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Thu, 8 Aug 2024 10:06:00 +0700 Subject: [PATCH 1/2] fix: Numbers are displayed when editing an email mention --- src/libs/Parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/Parser.ts b/src/libs/Parser.ts index 15a4981225f3..c3dbb29d5af7 100644 --- a/src/libs/Parser.ts +++ b/src/libs/Parser.ts @@ -15,7 +15,7 @@ Onyx.connect({ return; } - accountIDToNameMap[personalDetails.accountID] = personalDetails.login ?? personalDetails.displayName ?? String(personalDetails.accountID); + accountIDToNameMap[personalDetails.accountID] = personalDetails.login ?? personalDetails.displayName ?? String(personalDetails.accountID) ?? ''; }); }, }); From c6fad522b20224a4b95d1a387adba494a50b14a5 Mon Sep 17 00:00:00 2001 From: nkdengineer <161821005+nkdengineer@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:09:57 +0700 Subject: [PATCH 2/2] Update src/libs/Parser.ts Co-authored-by: Aimane Chnaif <96077027+aimane-chnaif@users.noreply.github.com> --- src/libs/Parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/Parser.ts b/src/libs/Parser.ts index c3dbb29d5af7..18e37658f220 100644 --- a/src/libs/Parser.ts +++ b/src/libs/Parser.ts @@ -15,7 +15,7 @@ Onyx.connect({ return; } - accountIDToNameMap[personalDetails.accountID] = personalDetails.login ?? personalDetails.displayName ?? String(personalDetails.accountID) ?? ''; + accountIDToNameMap[personalDetails.accountID] = personalDetails.login ?? personalDetails.displayName ?? ''; }); }, });