Fixed typo in template for quick-adding a user.

This commit is contained in:
Kenton Hamaluik 2015-10-03 16:56:27 -06:00
parent 429686ef48
commit e4c5d2cbe6

View file

@ -45,7 +45,7 @@ BlazeComponent.extendComponent({
let foundUserIds = []; // eslint-disable-line prefer-const
currentBoard.members.forEach((member) => {
const username = Users.findOne(member.userId).username;
const nameNdx = title.indexOf(`@${username}!`);
const nameNdx = title.indexOf(`@${username}`);
if(nameNdx !== -1) {
foundUserIds.push(member.userId);
title = title.substr(0, nameNdx)