diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx index c43f0cdea..c301b287a 100644 --- a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx @@ -22,6 +22,7 @@ export function ReviewPoliciesScreen(): VNode { reducer.currentReducerState.authentication_methods ?? []; const policies = reducer.currentReducerState.policies ?? []; + if (editingPolicy !== undefined) { return ( <EditPoliciesScreen @@ -60,7 +61,7 @@ export function ReviewPoliciesScreen(): VNode { <div class="block" style={{ justifyContent: "flex-end" }}> <button class="button is-success" - onClick={() => setEditingPolicy(policies.length + 1)} + onClick={() => setEditingPolicy(policies.length)} > Add new policy </button> |