fix accounts bug
This commit is contained in:
parent
4f8f1a41f3
commit
59024cca97
1 changed files with 5 additions and 3 deletions
|
|
@ -66,9 +66,11 @@ function getAccounts (accountCode) {
|
|||
}
|
||||
|
||||
function elideSecrets (account) {
|
||||
const elideSecret = field => field.fieldType === 'password'
|
||||
? _.set('value', !_.isNil(field.value), field)
|
||||
: field
|
||||
const elideSecret = field => {
|
||||
return field.fieldType === 'password'
|
||||
? _.set('value', !_.isEmpty(field.value), field)
|
||||
: field
|
||||
}
|
||||
|
||||
return _.set('fields', account.fields.map(elideSecret), account)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue