feat(chat): formatting

This commit is contained in:
Jonathan Rohde 2024-06-24 16:47:02 +02:00
parent 09e95b8d3c
commit c7855b3b9d

View File

@ -65,7 +65,7 @@
const findByName = (obj: ObjectWithName, prompt: string) => {
const name = obj.name.toLowerCase();
return name.includes(prompt.toLowerCase().split(' ')?.at(0)?.substring(1) ?? '');
}
};
export const selectUp = () => {
selectedIdx = Math.max(0, selectedIdx - 1);