Skip to content

Commit

Permalink
Address the default
Browse files Browse the repository at this point in the history
  • Loading branch information
thienlnam committed Jan 10, 2025
1 parent 6ed1ec7 commit ba1f1d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/NewChatPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}];
Expand Down
2 changes: 1 addition & 1 deletion src/types/onyx/NewGroupChatDraft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type SelectedParticipant = {
accountID: number;

/** Participant login name */
login: string;
login: string | undefined;
};

/** Model of new group chat draft */
Expand Down

0 comments on commit ba1f1d3

Please sign in to comment.