File tree Expand file tree Collapse file tree
src/frontend/src/pages/FinancePage/ReimbursementRequestForm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import ReimbursementProductTable from './ReimbursementProductTable';
3030import NERFailButton from '../../../components/NERFailButton' ;
3131import NERSuccessButton from '../../../components/NERSuccessButton' ;
3232import { ReimbursementRequestFormInput } from './ReimbursementRequestForm' ;
33- import { useState , useEffect } from 'react' ;
33+ import { useState } from 'react' ;
3434import { useToast } from '../../../hooks/toasts.hooks' ;
3535import { expenseTypePipe } from '../../../utils/pipes' ;
3636import { Link as RouterLink } from 'react-router-dom' ;
@@ -85,12 +85,6 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
8585 const products = watch ( `reimbursementProducts` ) ;
8686 const calculatedTotalCost = products . reduce ( ( acc , product ) => acc + Number ( product . cost ) , 0 ) . toFixed ( 2 ) ;
8787
88- useEffect ( ( ) => {
89- if ( ! hasSecureSettingsSet ) {
90- toast . warning ( 'Your secure settings must be set to create a reimbursement request, you can set them here.' , Infinity ) ;
91- }
92- } , [ ] ) ;
93-
9488 const wbsElementAutocompleteOptions = allWbsElements . map ( ( wbsElement ) => ( {
9589 label : wbsPipe ( wbsElement . wbsNum ) + ' - ' + wbsElement . wbsName ,
9690 id : wbsPipe ( wbsElement . wbsNum )
You can’t perform that action at this time.
0 commit comments