From 294766b8daf1c037c7ab53d44295d90c1a94069a Mon Sep 17 00:00:00 2001 From: noahspannbauer Date: Fri, 16 May 2025 10:24:27 -0500 Subject: [PATCH] add totals to logbook table (#90) * adding logbook page totals * adding logbook page totals * adding logbook page totals * adding logbook page totals --- app/src/components/logbook/columns.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/components/logbook/columns.tsx b/app/src/components/logbook/columns.tsx index 0c4e15a..fc1591b 100644 --- a/app/src/components/logbook/columns.tsx +++ b/app/src/components/logbook/columns.tsx @@ -112,7 +112,7 @@ export const authColumns: ColumnDef[] = [ id: 'landingsDay', accessorKey: 'landingsDay', header: 'Day', - footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : '', + footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info) : '', meta: { align: 'right', headerAlign: 'right' @@ -122,7 +122,7 @@ export const authColumns: ColumnDef[] = [ id: 'landingsNight', accessorKey: 'landingsNight', header: 'Night', - footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info).toFixed(1) : '', + footer: (info: HeaderContext) => columnTotal(info) > 0 ? columnTotal(info) : '', meta: { align: 'right', headerAlign: 'right'