Skip to content

Commit

Permalink
Merge pull request #36150 from situchan/fix-36139
Browse files Browse the repository at this point in the history
[CP Staging] prevent resetting to default when unselect category
  • Loading branch information
Julesssss authored Feb 8, 2024
2 parents ad3d78c + 7d8f9a8 commit 8942b38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/iou/request/step/IOURequestStepConfirmation.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ function IOURequestStepConfirmation({
return;
}
IOU.setMoneyRequestCategory_temporaryForRefactor(transactionID, defaultCategory);
}, [transactionID, transaction.category, requestType, defaultCategory]);
// Prevent resetting to default when unselect category
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [transactionID, requestType, defaultCategory]);

const navigateBack = useCallback(() => {
// If there is not a report attached to the IOU with a reportID, then the participants were manually selected and the user needs taken
Expand Down

0 comments on commit 8942b38

Please sign in to comment.