mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 23:05:46 +00:00
refactor(FE): Fix multiline formatting for isError conditions
This commit is contained in:
@@ -661,7 +661,8 @@ const FinanceTable = () => {
|
||||
errorMessage={filterFormik.errors.start_date}
|
||||
onChange={startDateChangeHandler}
|
||||
isError={
|
||||
filterFormik.touched.start_date && Boolean(filterFormik.errors.start_date)
|
||||
filterFormik.touched.start_date &&
|
||||
Boolean(filterFormik.errors.start_date)
|
||||
}
|
||||
/>
|
||||
<DateInput
|
||||
@@ -671,7 +672,9 @@ const FinanceTable = () => {
|
||||
errorMessage={filterFormik.errors.end_date}
|
||||
onChange={endDateChangeHandler}
|
||||
isError={
|
||||
(filterFormik.touched.end_date && Boolean(filterFormik.errors.end_date)) || hasDateError
|
||||
(filterFormik.touched.end_date &&
|
||||
Boolean(filterFormik.errors.end_date)) ||
|
||||
hasDateError
|
||||
}
|
||||
/>
|
||||
<DebouncedTextInput
|
||||
|
||||
Reference in New Issue
Block a user