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