From 78ab794916ac5ac76b24b49e8622607a5519eb9e Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Fri, 28 Jul 2023 09:15:54 +0100 Subject: [PATCH] formatted number on recommendation table --- src/app/components/building-passport/RecommendationCard.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/components/building-passport/RecommendationCard.tsx b/src/app/components/building-passport/RecommendationCard.tsx index 851e83c4..c8b72b02 100644 --- a/src/app/components/building-passport/RecommendationCard.tsx +++ b/src/app/components/building-passport/RecommendationCard.tsx @@ -15,6 +15,9 @@ export const uvalueColumns: ColumnDef[] = [ { accessorKey: "estimatedCost", header: "Estimated Cost", + cell: ({ row }) => { + return
£{formatNumber(row.getValue("estimatedCost"))}
; + }, }, { accessorKey: "newUValue",