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 @@ -51,7 +51,7 @@ interface ReimbursementRequestFormViewProps {
5151 } [ ] ;
5252 control : Control < ReimbursementRequestFormInput , any > ;
5353 reimbursementProducts : ReimbursementProductCreateArgs [ ] ;
54- receiptAppend : ( args : ReimbursementReceiptUploadArgs ) => void ;
54+ receiptPrepend : ( args : ReimbursementReceiptUploadArgs ) => void ;
5555 receiptRemove : ( index : number ) => void ;
5656 reimbursementProductAppend : ( args : ReimbursementProductCreateArgs ) => void ;
5757 reimbursementProductRemove : ( index : number ) => void ;
@@ -72,7 +72,7 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
7272 receiptFiles,
7373 reimbursementProducts,
7474 control,
75- receiptAppend ,
75+ receiptPrepend ,
7676 receiptRemove,
7777 reimbursementProductAppend,
7878 reimbursementProductRemove,
@@ -272,7 +272,7 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
272272 if ( e . target . files ) {
273273 [ ...e . target . files ] . forEach ( ( file ) => {
274274 if ( file . size < 1000000 ) {
275- receiptAppend ( {
275+ receiptPrepend ( {
276276 file : file ,
277277 name : file . name ,
278278 googleFileId : ''
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ const ReimbursementRequestForm: React.FC<ReimbursementRequestFormProps> = ({
8989
9090 const {
9191 fields : receiptFiles ,
92- prepend : receiptAppend ,
92+ prepend : receiptPrepend ,
9393 remove : receiptRemove
9494 } = useFieldArray ( {
9595 control,
@@ -184,7 +184,7 @@ const ReimbursementRequestForm: React.FC<ReimbursementRequestFormProps> = ({
184184 receiptFiles = { receiptFiles }
185185 control = { control }
186186 reimbursementProducts = { reimbursementProducts }
187- receiptAppend = { receiptAppend }
187+ receiptPrepend = { receiptPrepend }
188188 receiptRemove = { receiptRemove }
189189 reimbursementProductAppend = { reimbursementProductAppend }
190190 reimbursementProductRemove = { reimbursementProductRemove }
You can’t perform that action at this time.
0 commit comments