the cooler ternary

36adb6992ef18e57d548b18cdbdf26090821d6e9

qvink <qvink@users.noreply.github.com>

1 files changed, +2 -2Showing whitespace changes
public/script.js+2 -2
@@ -6031,8 +6031,8 @@ export function cleanUpMessage({ getMessage, isImpersonate, isContinue, displayI
6031 // This only occurs if the corresponding "power_user.allow_nameX_display" is false.6031 // This only occurs if the corresponding "power_user.allow_nameX_display" is false.
60326032
6033 let wrongName = isImpersonate6033 let wrongName = isImpersonate
6034 ? (power_user.allow_name2_display ? '' : name2) // char6034 ? (!power_user.allow_name2_display ? name2 : '') // char
6035 : (power_user.allow_name1_display ? '' : name1); // user6035 : (!power_user.allow_name1_display ? name1 : ''); // user
60366036
6037 if (wrongName) {6037 if (wrongName) {
6038 // If the message starts with the wrong name, delete the entire response6038 // If the message starts with the wrong name, delete the entire response