We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 101fe8a + ee56be6 commit 9ee0455Copy full SHA for 9ee0455
1 file changed
src/frontend/src/pages/FinancePage/ReimbursementRequestForm/ReimbursementFormView.tsx
@@ -194,11 +194,13 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
194
value={value}
195
error={!!errors.expenseTypeId}
196
>
197
- {allExpenseTypes.map((expenseType) => (
198
- <MenuItem key={expenseType.expenseTypeId} value={expenseType.expenseTypeId}>
199
- {expenseTypePipe(expenseType)}
200
- </MenuItem>
201
- ))}
+ {allExpenseTypes
+ .filter((expenseType) => expenseType.allowed)
+ .map((expenseType) => (
+ <MenuItem key={expenseType.expenseTypeId} value={expenseType.expenseTypeId}>
+ {expenseTypePipe(expenseType)}
202
+ </MenuItem>
203
+ ))}
204
</Select>
205
)}
206
/>
0 commit comments