diff --git a/src/ProChat/store/selectors/chat.ts b/src/ProChat/store/selectors/chat.ts index e1bf1c0..cdf24e9 100644 --- a/src/ProChat/store/selectors/chat.ts +++ b/src/ProChat/store/selectors/chat.ts @@ -13,11 +13,13 @@ export const currentChats = (s: ChatStore): ChatMessage[] => { // eslint-disable-next-line @typescript-eslint/no-unused-vars const { avatar, title, backgroundColor, ...rest } = s.userMeta; const assistant = s.assistantMeta; + const user = s.userMeta; switch (message?.role) { case 'user': { return { avatar, title, + backgroundColor: user?.backgroundColor, ...rest, }; }