Skip to content

Commit c70cae6

Browse files
committed
fixed error
1 parent 99417b3 commit c70cae6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

frontend/src/main-page/cash-flow/components/CashSourceList.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { CashflowCost } from "../../../../../middle-layer/types/CashflowCost";
22
import { CashflowRevenue } from "../../../../../middle-layer/types/CashflowRevenue";
33
import { deleteCost, deleteRevenue } from "../processCashflowDataEditSave";
44
import CashEditLineItem from "./CashEditLineItem";
5-
import CashEditCost from "./CashEditCost";
65
import CashEditRevenue from "./CashEditRevenue";
76
import { formatMoney } from "../CashFlowPage";
87
import { formatDateByFrequency, frequencyLabels } from "../../../../../middle-layer/types/Frequency";
@@ -75,7 +74,7 @@ export default function CashSourceList({ type, lineItems }: SourceProps) {
7574
}
7675
>
7776
{(onClose) =>
78-
type === "Cost" && (
77+
type === "Cost" ? (
7978
<CashAddEditCost
8079
costItem={item as CashflowCost}
8180
onClose={onClose}

0 commit comments

Comments
 (0)