Skip to content

Commit

Permalink
feat: navigate to accounting page
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayata Suenaga committed May 1, 2024
1 parent c4a1c59 commit 41d105b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libs/actions/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3987,6 +3987,9 @@ function enablePolicyConnections(policyID: string, enabled: boolean) {
const parameters: EnablePolicyConnectionsParams = {policyID, enabled};

API.write(WRITE_COMMANDS.ENABLE_POLICY_CONNECTIONS, parameters, onyxData);
if (enabled) {
navigateWhenEnableFeature(policyID, ROUTES.POLICY_ACCOUNTING.getRoute(policyID));
}
}

function enablePolicyDistanceRates(policyID: string, enabled: boolean) {
Expand Down

0 comments on commit 41d105b

Please sign in to comment.