Skip to content

Commit

Permalink
setting new owner of the policy after successful flow
Browse files Browse the repository at this point in the history
  • Loading branch information
burczu committed Mar 28, 2024
1 parent 9a1f43c commit 8b27a47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/actions/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,8 @@ function requestWorkspaceOwnerChange(policyID: string) {
isLoading: false,
isChangeOwnerSuccessful: true,
isChangeOwnerFailed: false,
owner: sessionEmail,
ownerAccountID: sessionAccountID,
},
},
];
Expand Down Expand Up @@ -1141,6 +1143,8 @@ function addBillingCardAndRequestPolicyOwnerChange(
key: `${ONYXKEYS.COLLECTION.POLICY}${policyID}`,
value: {
isLoading: false,
owner: sessionEmail,
ownerAccountID: sessionAccountID,
},
},
];
Expand Down

0 comments on commit 8b27a47

Please sign in to comment.