File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -481,21 +481,24 @@ export const Settings = () => {
481
481
} ;
482
482
483
483
const createAccountToSave = ( values : FormAccount ) : Account => {
484
- return {
484
+ let accountToSave = {
485
485
id : formAccount . id ,
486
486
settings : {
487
487
peer_login_expiration : expiresInToSeconds (
488
- values . peer_login_expiration_formatted
488
+ values . peer_login_expiration_formatted
489
489
) ,
490
490
peer_login_expiration_enabled : values . peer_login_expiration_enabled ,
491
491
jwt_groups_enabled : jwtGroupsEnabled ,
492
492
jwt_groups_claim_name : jwtGroupsClaimName ,
493
493
groups_propagation_enabled : groupsPropagationEnabled ,
494
- extra : {
495
- peer_approval_enabled : values . peer_approval_enabled
496
- }
497
494
} ,
498
495
} as Account ;
496
+ if ( isNetBirdHosted ( ) || isLocalDev ( ) ) {
497
+ accountToSave . settings . extra = {
498
+ peer_approval_enabled : values . peer_approval_enabled
499
+ }
500
+ }
501
+ return accountToSave ;
499
502
} ;
500
503
501
504
const confirmSave = ( newValues : FormAccount ) => {
You can’t perform that action at this time.
0 commit comments