Skip to content

Commit 0be6998

Browse files
committed
#1289 removed redundant parts
1 parent 8420878 commit 0be6998

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/frontend/src/pages/FinancePage/ReimbursementRequestForm/ReimbursementFormView.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,13 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
192192
<Autocomplete
193193
options={allExpenseTypes}
194194
getOptionLabel={(expenseType) => expenseType.name}
195-
value={allExpenseTypes.find((expenseType) => expenseType.expenseTypeId === value) || null}
195+
value={allExpenseTypes.find((expenseType) => expenseType.expenseTypeId === value)}
196196
onChange={(_event, newValue) => {
197197
if (newValue) {
198198
onChange(newValue.expenseTypeId);
199199
}
200200
}}
201-
renderInput={(params) => (
202-
<TextField {...params} placeholder="Expense Type" error={!!errors.expenseTypeId} />
203-
)}
201+
renderInput={(params) => <TextField {...params} placeholder="Expense Type" />}
204202
/>
205203
)}
206204
/>

0 commit comments

Comments
 (0)