Skip to content

Commit 4e47b0f

Browse files
committed
#3879: prettier linting fixes
1 parent a2b3ad2 commit 4e47b0f

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ const MaterialForm: React.FC<MaterialFormProps> = ({ submitText, assemblies, onS
139139

140140
const onSubmitWrapper = (data: MaterialFormInput): void => {
141141
const price = data.price ? Math.round(data.price * 100) : undefined;
142-
const subtotal = price ? (data.quantity != null ? parseFloat((data.quantity * price).toFixed(2)) : undefined) : undefined;
142+
const subtotal = price
143+
? data.quantity != null
144+
? parseFloat((data.quantity * price).toFixed(2))
145+
: undefined
146+
: undefined;
143147
onSubmit({ ...data, subtotal, price, quantity: data.quantity != null ? new Decimal(data.quantity) : undefined });
144148
};
145149

src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOM/MaterialForm/MaterialFormView.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,7 @@ const MaterialFormView: React.FC<MaterialFormViewProps> = ({
276276
Part Details:
277277
</Typography>
278278
<Tooltip title={"Enter 'N/A' if no Manufacturer Part Number"} placement="right">
279-
<HelpIcon
280-
sx={{ marginBottom: '-1.2em', fontSize: 'medium', marginLeft: '5px', color: 'lightgray' }}
281-
/>
279+
<HelpIcon sx={{ marginBottom: '-1.2em', fontSize: 'medium', marginLeft: '5px', color: 'lightgray' }} />
282280
</Tooltip>
283281
</Box>
284282
</Grid>
@@ -407,7 +405,7 @@ const MaterialFormView: React.FC<MaterialFormViewProps> = ({
407405
</Grid>
408406
</Grid>
409407
<Grid item xs={12}>
410-
<Grid item xs={12} mt={2}>
408+
<Grid item xs={12} mt={2}>
411409
<FormControl fullWidth>
412410
<Controller
413411
name="reimbursementRequestId"

0 commit comments

Comments
 (0)