Skip to content

Commit

Permalink
Fix bad ternary statement in autocomplete user pill insertions (#7977)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Mar 4, 2022
1 parent a58b1e9 commit 881307e
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 881307e

Please sign in to comment.