Fineract URLs to use first item in the list as default if exists

This commit is contained in:
Jose Alberto Hernandez
2025-04-06 17:20:38 -05:00
parent 6ec7c9e774
commit ce858cb8cf
6 changed files with 47 additions and 36 deletions
@@ -54,7 +54,9 @@ export class AmazonS3Component implements OnInit {
getConfigurationValue(configuration: any): string {
const value = configuration.value;
if (configuration.name === 's3_access_key' || configuration.name === 's3_secret_key') {
return value ? value.replace(value.substr(1, value.length - 3), value.substr(1, value.length - 3).replace(/./g, '*')) : '';
return value
? value.replace(value.substr(1, value.length - 3), value.substr(1, value.length - 3).replace(/./g, '*'))
: '';
}
return value;
}