Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix bad ternary statement in autocomplete user pill insertions #7977

Merged
merged 1 commit into from
Mar 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/editor/parts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,10 @@ export class PartCreator {
userId: string,
): [UserPillPart, PlainPart] {
const pill = this.userPill(displayName, userId);
const postfix = this.plain(
insertTrailingCharacter &&
(SettingsStore.getValue("MessageComposerInput.insertTrailingComma") ? ": " : " "),
);
if (!SettingsStore.getValue("MessageComposerInput.insertTrailingComma")) {
insertTrailingCharacter = false;
}
const postfix = this.plain(insertTrailingCharacter ? ": " : " ");
return [pill, postfix];
}
}
Expand Down