Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Sep 25, 2023
1 parent efc9685 commit 33dd82f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/iou/MoneyRequestSelectorPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ function MoneyRequestSelectorPage(props) {

useEffect(() => {
if (prevSelectedTab === props.selectedTab) {
return;
return;
}

resetMoneyRequestInfo();
// resetMoneyRequestInfo function is not added as dependencies since they don't change between renders
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.selectedTab, prevSelectedTab]);

return (
Expand Down

0 comments on commit 33dd82f

Please sign in to comment.