File tree Expand file tree Collapse file tree
src/components/ConnectToSageIntacctFlow Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { useEffect } from 'react' ;
2+ import useHasReusablePoliciesConnectedTo from '@hooks/useHasReusablePoliciesConnectedTo' ;
23import useOnyx from '@hooks/useOnyx' ;
3- import useReusablePoliciesConnectedTo from '@hooks/useReusablePoliciesConnectedTo' ;
44import { isAuthenticationError } from '@libs/actions/connections' ;
55import Navigation from '@libs/Navigation/Navigation' ;
66import CONST from '@src/CONST' ;
@@ -12,7 +12,7 @@ type ConnectToSageIntacctFlowProps = {
1212} ;
1313
1414function ConnectToSageIntacctFlow ( { policyID} : ConnectToSageIntacctFlowProps ) {
15- const { hasReusablePoliciesConnectedTo : hasReusablePoliciesConnectedToSageIntacct } = useReusablePoliciesConnectedTo ( CONST . POLICY . CONNECTIONS . NAME . SAGE_INTACCT , policyID ) ;
15+ const hasReusablePoliciesConnectedToSageIntacct = useHasReusablePoliciesConnectedTo ( CONST . POLICY . CONNECTIONS . NAME . SAGE_INTACCT , policyID ) ;
1616 const [ policy ] = useOnyx ( `${ ONYXKEYS . COLLECTION . POLICY } ${ policyID } ` ) ;
1717 const shouldGoToEnterCredentials = isAuthenticationError ( policy , CONST . POLICY . CONNECTIONS . NAME . SAGE_INTACCT ) ;
1818
You can’t perform that action at this time.
0 commit comments