Fix character note for the first character in the list

This commit is contained in:
Cohee 2024-11-08 10:55:10 +02:00
parent 6ae296d5b5
commit b29bc4000c

View File

@ -327,7 +327,7 @@ export function setFloatingPrompt() {
shouldWIAddPrompt = shouldAddPrompt;
let prompt = shouldAddPrompt ? $('#extension_floating_prompt').val() : '';
if (shouldAddPrompt && extension_settings.note.chara && getContext().characterId) {
if (shouldAddPrompt && extension_settings.note.chara && getContext().characterId !== undefined) {
const charaNote = extension_settings.note.chara.find((e) => e.name === getCharaFilename());
// Only replace with the chara note if the user checked the box