Implement search on the frontend

This commit is contained in:
2024-08-13 17:43:34 +02:00
parent 8fd8d53cc3
commit 0e64ff9eb2
3 changed files with 65 additions and 2 deletions

View File

@@ -54,7 +54,8 @@
if (!per100Edited)
GetLastPer100(name.trim()).then((res) => {
if (res.success) {
console.log(res.data);
if (res.success && res.data) {
console.log(res.data[0].food);
per100 = res.data[0].per100.toString();
}