Skip to content

Commit

Permalink
Get the file upload working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolen committed Nov 2, 2023
1 parent 0d4ddde commit 254cf6f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/pages/iou/request/step/IOURequestStepConfirmation.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,9 @@ function IOURequestStepConfirmation({
if (!file) {
Navigation.goBack(ROUTES.MONEY_REQUEST.getRoute(iouType, reportID));
} else {
setReceiptFile({
...file,
state: file && requestType === CONST.IOU.REQUEST_TYPE.MANUAL ? CONST.IOU.RECEIPT_STATE.OPEN : CONST.IOU.RECEIPT_STATE.SCANREADY,
});
const receipt = file;
receipt.state = file && requestType === CONST.IOU.REQUEST_TYPE.MANUAL ? CONST.IOU.RECEIPT_STATE.OPEN : CONST.IOU.RECEIPT_STATE.SCANREADY;
setReceiptFile(receipt);
}
});
}, [receiptFilename, receiptPath, requestType, iouType, reportID]);
Expand Down Expand Up @@ -242,7 +241,6 @@ function IOURequestStepConfirmation({
return;
}

console.log('[tim', receiptFile);
if (receiptFile) {
requestMoney(selectedParticipants, trimmedComment, receiptFile);
return;
Expand Down

0 comments on commit 254cf6f

Please sign in to comment.