From 446d568378ff1509c5884893200175932bb349eb Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Fri, 13 Sep 2024 15:38:41 +0200 Subject: [PATCH] BugFix mobile menu & criteria state --- bizmatch-server/src/listings/business-listing.service.ts | 2 +- bizmatch-server/src/listings/commercial-property.service.ts | 2 +- bizmatch/src/app/pages/home/home.component.html | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bizmatch-server/src/listings/business-listing.service.ts b/bizmatch-server/src/listings/business-listing.service.ts index 64b5431..3942ca9 100644 --- a/bizmatch-server/src/listings/business-listing.service.ts +++ b/bizmatch-server/src/listings/business-listing.service.ts @@ -37,7 +37,7 @@ export class BusinessListingService { } if (criteria.state) { - whereConditions.push(sql`${businesses.location}->>'state' = ${criteria.city.state}`); + whereConditions.push(sql`${businesses.location}->>'state' = ${criteria.state}`); } if (criteria.minPrice) { diff --git a/bizmatch-server/src/listings/commercial-property.service.ts b/bizmatch-server/src/listings/commercial-property.service.ts index 30a7154..7e23ece 100644 --- a/bizmatch-server/src/listings/commercial-property.service.ts +++ b/bizmatch-server/src/listings/commercial-property.service.ts @@ -35,7 +35,7 @@ export class CommercialPropertyService { } if (criteria.state) { - whereConditions.push(sql`${schema.commercials.location}->>'state' = ${criteria.city.state}`); + whereConditions.push(sql`${schema.commercials.location}->>'state' = ${criteria.state}`); } if (criteria.minPrice) { diff --git a/bizmatch/src/app/pages/home/home.component.html b/bizmatch/src/app/pages/home/home.component.html index 2807e5a..f5236df 100644 --- a/bizmatch/src/app/pages/home/home.component.html +++ b/bizmatch/src/app/pages/home/home.component.html @@ -18,9 +18,9 @@