diff --git a/app/src/api/dataAccess/aggregate.ts b/app/src/api/dataAccess/aggregate.ts index 15358ec6..88391c86 100644 --- a/app/src/api/dataAccess/aggregate.ts +++ b/app/src/api/dataAccess/aggregate.ts @@ -9,7 +9,7 @@ export type AggregationMethodFunction = (buildingId: number, attributeName: stri export async function aggregateCountTrue(buildingId: number, attributeName: string, t?: ITask): Promise { try { - // use pg-format here instead of pg-promise parameterised queries as they don't support column name from paraemeter + // use pg-format here instead of pg-promise parameterised queries as they don't support column name from parameter // assume that there won't be more likes than Postgres int range and cast to int // otherwise the count is returned as a bigint which has less support in node-postgres const query = format(`SELECT count(*)::int as agg FROM building_user_attributes WHERE building_id = %L::int AND %I = true;`, buildingId, attributeName); diff --git a/app/src/frontend/config/categories-config.ts b/app/src/frontend/config/categories-config.ts index 02a37d66..e053b19c 100644 --- a/app/src/frontend/config/categories-config.ts +++ b/app/src/frontend/config/categories-config.ts @@ -19,7 +19,7 @@ export enum Category { /** * This is the sole configuration variable that defines the order of the categories - * in the category grid. The order in the enum defition or the other configs does + * in the category grid. The order in the enum definition or the other configs does * not affect the order of the grid. */ export const categoriesOrder: Category[] = [ diff --git a/app/src/frontend/config/data-fields-config.ts b/app/src/frontend/config/data-fields-config.ts index 8145b683..893508f0 100644 --- a/app/src/frontend/config/data-fields-config.ts +++ b/app/src/frontend/config/data-fields-config.ts @@ -385,7 +385,7 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */ sust_aggregate_estimate_epc: { category: Category.Sustainability, title: "EPC Rating", - tooltip: "(Energy Performance Certifcate) Any premises sold or rented is required to have an EPC to show how energy efficient it is. Only buildings rate grade E or higher maybe rented", + tooltip: "(Energy Performance Certificate) Any premises sold or rented is required to have an EPC to show how energy efficient it is. Only buildings rate grade E or higher maybe rented", example: "", }, sust_retrofit_date: {