Added reservation and username lookup
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 2m13s

This commit is contained in:
2024-05-13 10:49:03 -04:00
parent 4a273ccb2f
commit 78211a33ae
17 changed files with 180 additions and 72 deletions

View File

@@ -39,5 +39,9 @@ export const useBoatStore = defineStore('boat', () => {
}
}
return { boats, fetchBoats };
const getBoatById = (id: string): Boat | null => {
return boats.value.find((b) => b.$id === id) || null;
};
return { boats, fetchBoats, getBoatById };
});