Fix wrong typedef

This commit is contained in:
Alessio Davoli 2023-11-27 05:39:48 +01:00
parent a572d710b3
commit af238ff7e2

View file

@ -40,7 +40,7 @@ const getRouteByCategory = async (categoryId: number) => {
}
const getRoute = async (routeId: number) => {
let data = [];
let data = {};
if (import.meta.env.PROD) {
const response = await fetch(`${API_URL}/route/${routeId}`);
const json = await response.json();