aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-webui
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-11-10 11:40:56 -0300
committerSebastian <sebasjm@gmail.com>2021-11-10 11:57:13 -0300
commitf9dedc06d6825640c9f1aca462779757cb4194e4 (patch)
tree475d022f91b7b353e28b50337d789ee4a707c7fe /packages/anastasis-webui
parenta62deeef5d0cbe5fa98be390eac0e03bcae0f0b5 (diff)
fix
Diffstat (limited to 'packages/anastasis-webui')
-rw-r--r--packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx3
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>