This commit is contained in:
Timothy J. Baek
2024-10-01 17:46:56 -07:00
parent c5eb0a9732
commit c2732a0990
2 changed files with 5 additions and 9 deletions

View File

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