Skip to content

Commit 15852e3

Browse files
committed
minor text changes
1 parent 65d2057 commit 15852e3

File tree

1 file changed

+4
-4
lines changed
  • resources/js/Pages/Vault/Journal/Post

1 file changed

+4
-4
lines changed

resources/js/Pages/Vault/Journal/Post/Edit.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ const update = () => {
181181
if (duplicateContacts.length > 0) {
182182
// If there are duplicate contacts with the same name and different IDs, mark as invalid
183183
invalidMentionsFound = true;
184-
invalidMentionText = `${trans('Cannot mention a contact when there are 2 identical contacts linked: @name', { name })}`;
185-
return `@${name} (duplicate contacts exist)`;
184+
invalidMentionText =
185+
trans('Cannot mention a contact when there are 2 identically named contacts linked') + `: @${name}`;
186+
return '';
186187
}
187188
188189
return `{{{CONTACT-ID:${contact.id}|${name}}}}`;
@@ -192,8 +193,7 @@ const update = () => {
192193
invalidMentionsFound = true;
193194
invalidMentionText = trans('Invalid mention') + `: @${name}`;
194195
195-
// If no contact is found, remove apostrophes and add fallback text
196-
return `@${name} (contact not linked to post)`;
196+
return '';
197197
});
198198
}
199199
});

0 commit comments

Comments
 (0)