Fix character note for the first character in the list

b29bc4000cfe89c0b9e6739af062a318eebcf1a9

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/authors-note.js+1 -1
@@ -327,7 +327,7 @@ export function setFloatingPrompt() {
327 shouldWIAddPrompt = shouldAddPrompt;327 shouldWIAddPrompt = shouldAddPrompt;
328328
329 let prompt = shouldAddPrompt ? $('#extension_floating_prompt').val() : '';329 let prompt = shouldAddPrompt ? $('#extension_floating_prompt').val() : '';
330 if (shouldAddPrompt && extension_settings.note.chara && getContext().characterId) {330 if (shouldAddPrompt && extension_settings.note.chara && getContext().characterId !== undefined) {
331 const charaNote = extension_settings.note.chara.find((e) => e.name === getCharaFilename());331 const charaNote = extension_settings.note.chara.find((e) => e.name === getCharaFilename());
332332
333 // Only replace with the chara note if the user checked the box333 // Only replace with the chara note if the user checked the box