Skip to content

Commit

Permalink
Fix peer expiration interval init on validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon committed Dec 11, 2023
1 parent a71389a commit 2f534f9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/views/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -481,12 +481,15 @@ export const Settings = () => {
};

const createAccountToSave = (values: FormAccount): Account => {
let peer_login_expiration = values.peer_login_expiration_formatted? expiresInToSeconds(
values.peer_login_expiration_formatted
) : accounts[0].settings.peer_login_expiration;


let accountToSave = {
id: formAccount.id,
settings: {
peer_login_expiration: expiresInToSeconds(
values.peer_login_expiration_formatted
),
peer_login_expiration: peer_login_expiration,
peer_login_expiration_enabled: values.peer_login_expiration_enabled,
jwt_groups_enabled: jwtGroupsEnabled,
jwt_groups_claim_name: jwtGroupsClaimName,
Expand Down

0 comments on commit 2f534f9

Please sign in to comment.