From 8b27a4764b739ccd9876db5073ee1703c3ba81dc Mon Sep 17 00:00:00 2001 From: burczu Date: Thu, 28 Mar 2024 11:21:44 +0100 Subject: [PATCH] setting new owner of the policy after successful flow --- src/libs/actions/Policy.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/actions/Policy.ts b/src/libs/actions/Policy.ts index 9e6a50f3f7d6..9d2c9e0e8a81 100644 --- a/src/libs/actions/Policy.ts +++ b/src/libs/actions/Policy.ts @@ -1076,6 +1076,8 @@ function requestWorkspaceOwnerChange(policyID: string) { isLoading: false, isChangeOwnerSuccessful: true, isChangeOwnerFailed: false, + owner: sessionEmail, + ownerAccountID: sessionAccountID, }, }, ]; @@ -1141,6 +1143,8 @@ function addBillingCardAndRequestPolicyOwnerChange( key: `${ONYXKEYS.COLLECTION.POLICY}${policyID}`, value: { isLoading: false, + owner: sessionEmail, + ownerAccountID: sessionAccountID, }, }, ];