Skip to content

Commit 6eb13e7

Browse files
committed
#1310: Removed unused code
1 parent fb5bc69 commit 6eb13e7

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import ReimbursementProductTable from './ReimbursementProductTable';
3030
import NERFailButton from '../../../components/NERFailButton';
3131
import NERSuccessButton from '../../../components/NERSuccessButton';
3232
import { ReimbursementRequestFormInput } from './ReimbursementRequestForm';
33-
import { useState, useEffect } from 'react';
33+
import { useState } from 'react';
3434
import { useToast } from '../../../hooks/toasts.hooks';
3535
import { expenseTypePipe } from '../../../utils/pipes';
3636
import { 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)

0 commit comments

Comments
 (0)