From 2f1d01215268d405b510d3fed419c5a6ad80be51 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 30 Jan 2024 11:28:28 +0000 Subject: [PATCH] Allowing sap points to go above 100 --- src/app/portfolio/[slug]/components/propertyTableColumns.tsx | 2 -- src/app/utils.ts | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/portfolio/[slug]/components/propertyTableColumns.tsx b/src/app/portfolio/[slug]/components/propertyTableColumns.tsx index 0a2cc810..7788dd13 100644 --- a/src/app/portfolio/[slug]/components/propertyTableColumns.tsx +++ b/src/app/portfolio/[slug]/components/propertyTableColumns.tsx @@ -139,8 +139,6 @@ export const columns: ColumnDef[] = [ accessorKey: "currentEpc", header: () =>
Current EPC Rating
, cell: ({ row }) => { - console.log(row.original.currentEpcRating); - return (
{} diff --git a/src/app/utils.ts b/src/app/utils.ts index a8b1ccfa..c227756c 100644 --- a/src/app/utils.ts +++ b/src/app/utils.ts @@ -80,8 +80,8 @@ export const serializeBigInt = (_: any, value: any): string | any => { }; export function sapToEpc(sapPoints: number): string { - if (sapPoints <= 0 || sapPoints > 100) { - throw new Error("SAP points should be between 1 and 100."); + if (sapPoints <= 0) { + throw new Error("SAP points should be above 0."); } if (sapPoints >= 92) {