Skip to content

Commit bcd9b18

Browse files
Samuel ShresthaSamuel Shrestha
authored andcommitted
fixed math error
1 parent 734d767 commit bcd9b18

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOM/BOMTableWrapper.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,7 @@ const BOMTableWrapper: React.FC<BOMTableWrapperProps> = ({
239239
// case 2 (if reimbursement request does not exist): link to the create reimbursement request page with pre-filled info
240240
const { quantity, price } = material;
241241

242-
const qty = quantity != null ? Number(quantity) : undefined;
243-
const unitPrice = price != null ? Number(price) : undefined;
244-
245-
const prefillCost = qty != null && unitPrice != null ? qty * unitPrice : undefined;
242+
const prefillCost = quantity != null && price != null ? (Number(quantity) * Number(price)) / 100 : undefined;
246243

247244
return (
248245
<Button

0 commit comments

Comments
 (0)