Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-19 16:25:24 +00:00
co-authored by renee-png
parent e9112a7109
commit 1c377ed634
+4 -1
View File
@@ -101,8 +101,11 @@ export function HeaderTimer() {
const isFlatFee = selectedFee?.pricing_type === "flat";
// If a fee item has no rate (0), fall back to the case rate then the user's
// profile rate. Flat-fee items always use their own amount.
const feeRate = selectedFee && Number(selectedFee.amount) > 0 ? selectedFee.amount : null;
const effectiveRate =
selectedFee?.amount ?? activeCase?.default_hourly_rate ?? profileRate ?? 0;
feeRate ?? activeCase?.default_hourly_rate ?? profileRate ?? 0;
const handleSelectFee = (id: string) => {
setFeeItemId(id);