Skip to content

Commit

Permalink
CM-489: added adjustments in payroll accept/reject
Browse files Browse the repository at this point in the history
  • Loading branch information
sniedzielski committed Feb 5, 2024
1 parent 5bf5e81 commit ffaa793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/payroll/PayrollPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function PayrollPage({
}, [payrollUuid]);

useEffect(() => {
if (confirmed) confirmedAction();
if (confirmed && typeof confirmed === 'function') confirmedAction();
return () => confirmed && clearConfirm(null);
}, [confirmed]);

Expand Down

0 comments on commit ffaa793

Please sign in to comment.