Browse Source
Feature/improve wording in single account rule (#1479)
* Improve wording
* Update changelog
pull/1481/head
Thomas Kaul
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
CHANGELOG.md
-
apps/api/src/models/rules/account-cluster-risk/single-account.ts
|
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
### Changed |
|
|
|
|
|
|
|
- Improved the language selector on the account page |
|
|
|
- Improved the wording in the _X-ray_ section (net worth instead of investment) |
|
|
|
- Extended the asset profile details dialog in the admin control panel |
|
|
|
- Upgraded `ionicons` from version `5.5.1` to `6.0.4` |
|
|
|
- Upgraded `uuid` from version `8.3.2` to `9.0.0` |
|
|
|
|
|
@ -19,13 +19,13 @@ export class AccountClusterRiskSingleAccount extends Rule<RuleSettings> { |
|
|
|
|
|
|
|
if (accounts.length === 1) { |
|
|
|
return { |
|
|
|
evaluation: `All your investment is managed by a single account`, |
|
|
|
evaluation: `Your net worth is managed by a single account`, |
|
|
|
value: false |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
return { |
|
|
|
evaluation: `Your investment is managed by ${accounts.length} accounts`, |
|
|
|
evaluation: `Your net worth is managed by ${accounts.length} accounts`, |
|
|
|
value: true |
|
|
|
}; |
|
|
|
} |
|
|
|