Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
e9112a7109
commit
1c377ed634
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user