We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bfc887 commit 9db0bf7Copy full SHA for 9db0bf7
1 file changed
src/frontend/src/pages/FinancePage/ReimbursementRequestForm/ReimbursementFormView.tsx
@@ -194,7 +194,6 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
194
name="expenseTypeId"
195
control={control}
196
render={({ field: { onChange, value } }) => {
197
- const selectedExpenseType = allExpenseTypes.find((expenseType) => expenseType.expenseTypeId === value);
198
return (
199
<NERAutocomplete
200
options={allExpenseTypes.map(expenseTypesToAutocomplete)}
@@ -207,6 +206,8 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
207
206
onChange={(_event, newValue) => {
208
if (newValue) {
209
onChange(newValue.label);
+ } else {
210
+ onChange('');
211
}
212
}}
213
id={'expenseType'}
0 commit comments