This commit is contained in:
Sebastian 2021-11-10 11:40:56 -03:00
parent a62deeef5d
commit f9dedc06d6
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -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>