We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 734d767 commit bcd9b18Copy full SHA for bcd9b18
1 file changed
src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOM/BOMTableWrapper.tsx
@@ -239,10 +239,7 @@ const BOMTableWrapper: React.FC<BOMTableWrapperProps> = ({
239
// case 2 (if reimbursement request does not exist): link to the create reimbursement request page with pre-filled info
240
const { quantity, price } = material;
241
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;
+ const prefillCost = quantity != null && price != null ? (Number(quantity) * Number(price)) / 100 : undefined;
246
247
return (
248
<Button
0 commit comments