Fix name-inclusion logic check

b8fc9f2194c5a0586110b15af4a6b44396c3c8bd

InspectorCaracal <51038201+InspectorCaracal@users.noreply.github.com>

Signed
1 files changed, +3 -3Ignore whitespace
public/scripts/instruct-mode.js+3 -3
@@ -475,9 +475,9 @@ export function formatInstructModeExamples(mesExamplesArray, name1, name2) {
475 }475 }
476476
477 for (const example of blockExamples) {477 for (const example of blockExamples) {
478 // If group names were already included, we don't want to add an additional prefix478 // If group names were included, we don't want to add any additional prefix as it already was applied.
479 // If force group/persona names is set, we should override the include names for the user placeholder479 // Otherwise, if force group/persona names is set, we should override the include names for the user placeholder
480 const includeThisName = (includeNames && !includeGroupNames) || (power_user.instruct.names_behavior === names_behavior_types.FORCE && example.name == 'example_user');480 const includeThisName = !includeGroupNames && (includeNames || (power_user.instruct.names_behavior === names_behavior_types.FORCE && example.name == 'example_user'));
481481
482 const prefix = example.name == 'example_user' ? inputPrefix : outputPrefix;482 const prefix = example.name == 'example_user' ? inputPrefix : outputPrefix;
483 const suffix = example.name == 'example_user' ? inputSuffix : outputSuffix;483 const suffix = example.name == 'example_user' ? inputSuffix : outputSuffix;