Skip to content

Commit f6a6a3e

Browse files
fix lint
1 parent 93bc89f commit f6a6a3e

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

react/components/OrganizationAndCostCenterFilter.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,14 @@ const OrganizationAndCostCenterFilter = ({
225225
const [orgState, setOrgState] = useState(organizationId)
226226
const [costCenterState, setCostCenterState] = useState(costCenterId)
227227

228-
const onChangeOrganization = useCallback((value: string) => {
229-
setOrgState(value)
230-
setCostCenterState('')
231-
onChange({ organizationId: value, costCenterId: '' })
232-
}, [onChange])
228+
const onChangeOrganization = useCallback(
229+
(value: string) => {
230+
setOrgState(value)
231+
setCostCenterState('')
232+
onChange({ organizationId: value, costCenterId: '' })
233+
},
234+
[onChange]
235+
)
233236

234237
const onChangeCostCenter = useCallback(
235238
(value: string) => {

react/components/QuoteDetails/QuoteTable.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
import { itemDiscountEligible } from '../../utils/helpers'
1616
import { quoteMessages, statusMessages } from '../../utils/messages'
1717
import { LabelByStatusMap } from '../../utils/status'
18-
1918
import styles from './QuoteTable.css'
2019

2120
const QuoteTable = ({

react/utils/helpers.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ export const initQuoteFromOrderForm = (orderForm: any) => {
1717
} else {
1818
quoteItems.push({
1919
...item,
20-
listPrice: typeof item.listPrice === 'number' ? item.listPrice * 100 : 0,
20+
listPrice:
21+
typeof item.listPrice === 'number' ? item.listPrice * 100 : 0,
2122
price: typeof item.price === 'number' ? item.price * 100 : 0,
22-
sellingPrice: typeof item.sellingPrice === 'number' ? item.sellingPrice * 100 : 0,
23+
sellingPrice:
24+
typeof item.sellingPrice === 'number' ? item.sellingPrice * 100 : 0,
2325
})
2426
}
2527
})

0 commit comments

Comments
 (0)