From b29bc4000cfe89c0b9e6739af062a318eebcf1a9 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 8 Nov 2024 10:55:10 +0200 Subject: [PATCH] Fix character note for the first character in the list --- public/scripts/authors-note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/authors-note.js b/public/scripts/authors-note.js index 5e1cf44a3..d8ef622e3 100644 --- a/public/scripts/authors-note.js +++ b/public/scripts/authors-note.js @@ -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