Skip to content

Commit

Permalink
Merge pull request #43820 from tienifr/fix/42924-accounting
Browse files Browse the repository at this point in the history
fix: App navigates user back to Xero organization selection page from Workspace settings page
  • Loading branch information
Julesssss authored Jun 26, 2024
2 parents 57e5d0e + 9af964d commit 0c20881
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import withPolicy from '@pages/workspace/withPolicy';
import type {WithPolicyProps} from '@pages/workspace/withPolicy';
import * as Policy from '@userActions/Policy/Policy';
import CONST from '@src/CONST';
import ROUTES from '@src/ROUTES';
import type SCREENS from '@src/SCREENS';

type XeroOrganizationConfigurationPageProps = WithPolicyProps & StackScreenProps<SettingsNavigatorParamList, typeof SCREENS.WORKSPACE.ACCOUNTING.XERO_ORGANIZATION>;
Expand Down Expand Up @@ -48,7 +47,7 @@ function XeroOrganizationConfigurationPage({
}

updatePolicyConnectionConfig(policyID, CONST.POLICY.CONNECTIONS.NAME.XERO, CONST.XERO_CONFIG.TENANT_ID, keyForList);
Navigation.goBack(ROUTES.WORKSPACE_ACCOUNTING.getRoute(policyID));
Navigation.goBack();
};

return (
Expand Down

0 comments on commit 0c20881

Please sign in to comment.