Skip to content

Commit 330c379

Browse files
committed
cost fixes on BOM page
1 parent 1d461f6 commit 330c379

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer

src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import ErrorPage from '../../ErrorPage';
1515
import { useGetAssembliesForWbsElement, useGetMaterialsForWbsElement } from '../../../hooks/bom.hooks';
1616

1717
export const addMaterialCosts = (accumulator: number, currentMaterial: MaterialPreview) =>
18-
currentMaterial.subtotal ?? 0 + accumulator;
18+
(currentMaterial.subtotal ?? 0) + accumulator;
1919

2020
const BOMTab = ({ project }: { project: Project }) => {
2121
const initialHideColumn = new Array(12).fill(false);

0 commit comments

Comments
 (0)