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 ?? []; reducer.currentReducerState.authentication_methods ?? [];
const policies = reducer.currentReducerState.policies ?? []; const policies = reducer.currentReducerState.policies ?? [];
if (editingPolicy !== undefined) { if (editingPolicy !== undefined) {
return ( return (
<EditPoliciesScreen <EditPoliciesScreen
@ -60,7 +61,7 @@ export function ReviewPoliciesScreen(): VNode {
<div class="block" style={{ justifyContent: "flex-end" }}> <div class="block" style={{ justifyContent: "flex-end" }}>
<button <button
class="button is-success" class="button is-success"
onClick={() => setEditingPolicy(policies.length + 1)} onClick={() => setEditingPolicy(policies.length)}
> >
Add new policy Add new policy
</button> </button>