ui-soxo-bootstrap-core 2.6.33 → 2.6.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -151,8 +151,10 @@ const UserAdd = ({ model, callback, edit, history, formContent, match, additiona
151
151
 
152
152
  /**if firmmas.otherdetails - 2FA == OPT, then, 2FA option will be enabled by default and editable */
153
153
  } else if (firmDetails.FA == 'USR') {
154
- setAuthentication(true);
155
-
154
+ /** If user has FA set to false , then disable authentication */
155
+ if (formContent?.FA !== undefined) {
156
+ setAuthentication(formContent?.FA);
157
+ }
156
158
  setDisabled(true);
157
159
 
158
160
  /**if firmmas.otherdetails - 2FA == NAP, then, 2FA option will be disabled by default and read-only*/
@@ -161,10 +163,6 @@ const UserAdd = ({ model, callback, edit, history, formContent, match, additiona
161
163
 
162
164
  setDisabled(true);
163
165
  }
164
- /** If user has FA set to false , then disable authentication */
165
- if (formContent?.FA === false) {
166
- setAuthentication(false);
167
- }
168
166
  }
169
167
  }, []);
170
168
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-soxo-bootstrap-core",
3
- "version": "2.6.33",
3
+ "version": "2.6.36",
4
4
  "description": "All the Core Components for you to start",
5
5
  "keywords": [
6
6
  "all in one"