From 8f345db143d515d56efc9049f599c87669bb81d5 Mon Sep 17 00:00:00 2001 From: EdiWeeks <121399761+EdiWeeks@users.noreply.github.com> Date: Mon, 9 Feb 2026 09:17:15 +0000 Subject: [PATCH] fix: Hide Billable Price when costs are hidden When the "Costs hidden" toggle is active, now also hides the Billable Price card along with Budget Cost and Actual Cost for a consistent experience. Fixes #138 Co-Authored-By: Claude Opus 4.5 --- src/components/projects/ProjectKPICards.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/projects/ProjectKPICards.tsx b/src/components/projects/ProjectKPICards.tsx index d2fec88..22f6409 100644 --- a/src/components/projects/ProjectKPICards.tsx +++ b/src/components/projects/ProjectKPICards.tsx @@ -255,11 +255,13 @@ export function ProjectKPICards() { }, { label: 'Billable Price', - value: formatCurrency(billablePrice, currencyCode), - subLabel: 'From Job Planning Lines', - breakdown: billableBreakdown, + value: showCosts ? formatCurrency(billablePrice, currencyCode) : '•••••', + subLabel: showCosts ? 'From Job Planning Lines' : 'Hidden', + breakdown: showCosts ? billableBreakdown : null, icon: CurrencyPoundIcon, color: 'text-blue-400', + isInternal: true, + isHidden: !showCosts, tooltip: { title: 'Billable Price (Customer)', description: