diff --git a/src/libs/actions/Policy/Policy.ts b/src/libs/actions/Policy/Policy.ts index 37f7d09f3a9a..f9652a3638d3 100644 --- a/src/libs/actions/Policy/Policy.ts +++ b/src/libs/actions/Policy/Policy.ts @@ -3479,7 +3479,7 @@ function downgradeToTeam(policyID: string) { onyxMethod: Onyx.METHOD.MERGE, key: `policy_${policyID}`, value: { - isPendingUpgrade: false, + isPendingDowngrade: false, type: policy?.type, }, }, diff --git a/src/pages/workspace/WorkspaceProfilePlanTypePage.tsx b/src/pages/workspace/WorkspaceProfilePlanTypePage.tsx index 35c184d72707..253f64d1574f 100644 --- a/src/pages/workspace/WorkspaceProfilePlanTypePage.tsx +++ b/src/pages/workspace/WorkspaceProfilePlanTypePage.tsx @@ -49,6 +49,10 @@ function WorkspaceProfilePlanTypePage({policy}: WithPolicyProps) { OpenWorkspacePlanPage(policyID); }, [policyID]); + useEffect(() => { + setCurrentPlan(policy?.type); + }, [policy?.type]); + const workspacePlanTypes = Object.values(CONST.POLICY.TYPE) .filter((type) => type !== CONST.POLICY.TYPE.PERSONAL) .map((policyType) => ({