Skip to content

Commit a52644e

Browse files
authored
Merge pull request #2165 from Northeastern-Electric-Racing/#1874-placeholder-refundsource
#1874 added placeholder for refund source
2 parents 341791f + f0824f5 commit a52644e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,14 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
271271
value={value}
272272
disabled={!selectedExpenseType}
273273
error={!!errors.account}
274+
displayEmpty
275+
renderValue={() => {
276+
return value ? (
277+
<Typography>{codeAndRefundSourceName(value)} </Typography>
278+
) : (
279+
<Typography style={{ color: 'gray' }}>Select Refund Source</Typography>
280+
);
281+
}}
274282
>
275283
{refundSources.map((refundSource) => (
276284
<MenuItem key={refundSource} value={refundSource}>

0 commit comments

Comments
 (0)