feat: update chat

This commit is contained in:
Timothy J. Baek 2023-12-26 10:41:55 -08:00
parent 0810a2648f
commit 1303407f53
3 changed files with 23 additions and 1 deletions

View file

@ -254,6 +254,7 @@
};
const rateMessage = async (messageIdx, rating) => {
// TODO: Move this function to parent
messages = messages.map((message, idx) => {
if (messageIdx === idx) {
message.rating = rating;