Skip to content

Commit 3f1f166

Browse files
committed
#2081: moved const declaration further down and edited comment
1 parent 6d9dfcf commit 3f1f166

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ import { useHistory } from 'react-router-dom';
2424
import { routes } from '../../../utils/routes';
2525
import { useCurrentUserSecureSettings } from '../../../hooks/users.hooks';
2626

27-
const RECEIPT_REQUIRED = import.meta.env.VITE_RR_RECEIPT_REQUIREMENT || 'disabled';
28-
2927
export interface ReimbursementRequestInformation {
3028
vendorId: string;
3129
dateOfExpense: Date;
@@ -50,6 +48,8 @@ interface ReimbursementRequestFormProps {
5048
previousPage: string;
5149
}
5250

51+
const RECEIPT_REQUIRED = import.meta.env.VITE_RR_RECEIPT_REQUIREMENT || 'disabled';
52+
5353
const schema = yup.object().shape({
5454
vendorId: yup.string().required('Vendor is required'),
5555
account: yup.string().required('Account is required'),
@@ -70,7 +70,7 @@ const schema = yup.object().shape({
7070
.required('reimbursement products required')
7171
.min(1, 'At least one Reimbursement Product is required'),
7272
receiptFiles:
73-
// The requirement for receipt uploads is disabled by default on development to make testing easier;
73+
// The requirements for receipt uploads is disabled by default on development to make testing easier;
7474
// if testing proper receipt uploads is needed, create an environment variable called VITE_RR_RECEIPT_REQUIREMENT
7575
// in src/frontend/.env and set it to 'enabled'.
7676
import.meta.env.MODE === 'development' && RECEIPT_REQUIRED !== 'enabled'

0 commit comments

Comments
 (0)