Skip to content

Commit

Permalink
dismiss modal after updating receipt
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Jan 12, 2024
1 parent c080ccc commit 28636aa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pages/iou/request/step/IOURequestStepScan/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,9 @@ function IOURequestStepScan({
const updateScanAndNavigate = useCallback(
(file, source) => {
IOU.replaceReceipt(transactionID, file, source);
if (backTo) {
Navigation.goBack(backTo);
return;
}
Navigation.dismissModal();
},
[backTo, transactionID],
[transactionID],
);

/**
Expand Down

0 comments on commit 28636aa

Please sign in to comment.