diff --git a/src/pages/NewChatPage.tsx b/src/pages/NewChatPage.tsx index 4d17997c56fb..bd29251713f1 100755 --- a/src/pages/NewChatPage.tsx +++ b/src/pages/NewChatPage.tsx @@ -276,7 +276,7 @@ function NewChatPage() { return; } const selectedParticipants: SelectedParticipant[] = selectedOptions.map((option: OptionData) => ({ - login: option.login ?? CONST.EMPTY_STRING, + login: option?.login, accountID: option.accountID ?? CONST.DEFAULT_NUMBER_ID, })); const logins = [...selectedParticipants, {login: personalData.login, accountID: personalData.accountID}]; diff --git a/src/types/onyx/NewGroupChatDraft.ts b/src/types/onyx/NewGroupChatDraft.ts index e075ed6e5e33..1ca29d621867 100644 --- a/src/types/onyx/NewGroupChatDraft.ts +++ b/src/types/onyx/NewGroupChatDraft.ts @@ -4,7 +4,7 @@ type SelectedParticipant = { accountID: number; /** Participant login name */ - login: string; + login: string | undefined; }; /** Model of new group chat draft */