refactor(FE): Fix missing dependency in useCallback hooks

This commit is contained in:
rstubryan
2026-02-12 10:57:22 +07:00
parent 322b519def
commit ee53ea61cc
@@ -166,7 +166,7 @@ const CustomerPaymentTab = ({ tabId }: CustomerPaymentTabProps) => {
setHasDateError(false); setHasDateError(false);
} }
}, },
[dateErrorShown] [formik, dateErrorShown]
); );
const handleEndDateChange = useCallback( const handleEndDateChange = useCallback(
@@ -196,7 +196,7 @@ const CustomerPaymentTab = ({ tabId }: CustomerPaymentTabProps) => {
setDateErrorShown(false); setDateErrorShown(false);
} }
}, },
[dateErrorShown] [formik, dateErrorShown]
); );
// ===== FILTER HELPERS ===== // ===== FILTER HELPERS =====