Fixed display prompt showing when there is no template

This commit is contained in:
Lucas Oliveira 2023-07-10 19:45:12 -03:00
commit 07e6b137c4

View file

@ -138,6 +138,8 @@ export default function ChatMessage({
</div> </div>
) : ( ) : (
<div> <div>
{template && (
<>
<button <button
className="form-modal-initial-prompt-btn" className="form-modal-initial-prompt-btn"
onClick={() => { onClick={() => {
@ -183,6 +185,9 @@ export default function ChatMessage({
}) })
: chat.message[chat.chatKey]} : chat.message[chat.chatKey]}
</span> </span>
</>
)}
{chat.message[chat.chatKey]}
</div> </div>
)} )}
</div> </div>