File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -481,12 +481,15 @@ export const Settings = () => {
481
481
} ;
482
482
483
483
const createAccountToSave = ( values : FormAccount ) : Account => {
484
+ let peer_login_expiration = values . peer_login_expiration_formatted ? expiresInToSeconds (
485
+ values . peer_login_expiration_formatted
486
+ ) : accounts [ 0 ] . settings . peer_login_expiration ;
487
+
488
+
484
489
let accountToSave = {
485
490
id : formAccount . id ,
486
491
settings : {
487
- peer_login_expiration : expiresInToSeconds (
488
- values . peer_login_expiration_formatted
489
- ) ,
492
+ peer_login_expiration : peer_login_expiration ,
490
493
peer_login_expiration_enabled : values . peer_login_expiration_enabled ,
491
494
jwt_groups_enabled : jwtGroupsEnabled ,
492
495
jwt_groups_claim_name : jwtGroupsClaimName ,
You can’t perform that action at this time.
0 commit comments