diff --git a/frontend/iQMA-Skills-Builder/app/screens/Chatbot.tsx b/frontend/iQMA-Skills-Builder/app/screens/Chatbot.tsx index 6a68198..637b76a 100644 --- a/frontend/iQMA-Skills-Builder/app/screens/Chatbot.tsx +++ b/frontend/iQMA-Skills-Builder/app/screens/Chatbot.tsx @@ -47,16 +47,18 @@ export const loadChatHistory = async (userId: string, sectionId: string) => { })) ); - const fixedResponse = [ - { - isUser: false, - text: `Hello! How can I assist you with ${sectionMapping[sectionId]}?`, - }, - ]; - - return formattedChatHistory.length > 0 - ? fixedResponse.concat(formattedChatHistory, fixedResponse) - : fixedResponse; + // const fixedResponse = [ + // { + // isUser: false, + // text: `Hello! How can I assist you with ${sectionMapping[sectionId]}?`, + // }, + // ]; + + // return formattedChatHistory.length > 0 + // ? fixedResponse.concat(formattedChatHistory, fixedResponse) + // : fixedResponse; + + return formattedChatHistory; } catch (error) { console.error('Error while loading chat history:', error); }