mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-03-15 12:29:16 +01:00
(bug) profile completion form is not shown is T&C were not filled
This commit is contained in:
parent
239e239901
commit
b53644d3a5
@ -14,6 +14,7 @@
|
||||
- Fix a bug: Unable to import accounts from SSO when the transformation modal was opened but leaved empty
|
||||
- Fix a bug: Unable to change the group of a user
|
||||
- Fix a bug: As admin, unable to create a new member (#374)
|
||||
- Fix a bug: profile completion form is not shown is T&C were not filled
|
||||
|
||||
## v5.4.12 2022 July 06
|
||||
|
||||
|
@ -82,7 +82,9 @@ export const UserProfileForm: React.FC<UserProfileFormProps> = ({ action, size,
|
||||
}).catch(error => onError(error));
|
||||
}
|
||||
if (showTermsAndConditionsInput) {
|
||||
CustomAssetAPI.get(CustomAssetName.CguFile).then(setTermsAndConditions).catch(error => onError(error));
|
||||
CustomAssetAPI.get(CustomAssetName.CguFile).then(cgu => {
|
||||
if (cgu?.custom_asset_file_attributes) setTermsAndConditions(cgu);
|
||||
}).catch(error => onError(error));
|
||||
}
|
||||
ProfileCustomFieldAPI.index().then(data => {
|
||||
const fData = data.filter(f => f.actived);
|
||||
|
Loading…
x
Reference in New Issue
Block a user