diff --git a/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx b/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx index b04ce96a..b0c2637e 100644 --- a/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx +++ b/src/components/pages/report/finance/tab/CustomerPaymentTab.tsx @@ -119,7 +119,6 @@ const CustomerPaymentTab = ({ tabId }: CustomerPaymentTabProps) => { }, }); - // Set the ref callback after formik is initialized handleFilterModalOpenRef.current = () => { filterModal.openModal(); formik.validateForm(); @@ -360,15 +359,12 @@ const CustomerPaymentTab = ({ tabId }: CustomerPaymentTabProps) => { (state) => state.clearTabActions ); - const formikValuesRef = useRef(formik.values); - formikValuesRef.current = formik.values; - useEffect(() => { setTabActions( tabId,