diff --git a/frontend/leeds-beer-quest/src/lib/api.ts b/frontend/leeds-beer-quest/src/lib/api.ts index 104a023..58ef8be 100644 --- a/frontend/leeds-beer-quest/src/lib/api.ts +++ b/frontend/leeds-beer-quest/src/lib/api.ts @@ -8,10 +8,9 @@ export class API { let params = ""; params += ArrayToArrayUrlParams("categories", venueFilters?.categories.map((c) => c.name) ?? []); params += ArrayToArrayUrlParams("tags", venueFilters?.tags.map((v) => v.name) ?? [], params.length < 1); - params += venueFilters?.nameFilter ? `${(params.length < 1 ? "?" : "&")}search=${venueFilters.nameFilter}` : ""; + params += venueFilters?.nameFilter ? `${params.length < 1 ? "?" : "&"}search=${venueFilters.nameFilter}` : ""; const response = await fetch(`${this.baseAPIUrl}/venue${params}`); - console.log(`calling ${this.baseAPIUrl}/venue${params}`); return await response.json(); }