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 @@
- Pricing - Log In - Register + + Log In + Register