Browse Source

Refactoring

pull/4835/head
Thomas Kaul 3 months ago
parent
commit
481a51e57f
  1. 4
      apps/api/src/models/rules/fees/fee-ratio-initial-investment.ts
  2. 4
      apps/client/src/app/pages/i18n/i18n-page.html

4
apps/api/src/models/rules/fees/fee-ratio-initial-investment.ts

@ -33,7 +33,7 @@ export class FeeRatioInitialInvestment extends Rule<Settings> {
if (feeRatio > ruleSettings.thresholdMax) {
return {
evaluation: this.i18nService.getTranslation({
id: 'rule.feeRatioInitialInvestment.exceed',
id: 'rule.feeRatioInitialInvestment.false',
languageCode: this.getLanguageCode(),
placeholders: {
feeRatio: (ruleSettings.thresholdMax * 100).toFixed(2),
@ -46,7 +46,7 @@ export class FeeRatioInitialInvestment extends Rule<Settings> {
return {
evaluation: this.i18nService.getTranslation({
id: 'rule.feeRatioInitialInvestment.notExceed',
id: 'rule.feeRatioInitialInvestment.true',
languageCode: this.getLanguageCode(),
placeholders: {
feeRatio: (feeRatio * 100).toPrecision(3),

4
apps/client/src/app/pages/i18n/i18n-page.html

@ -11,11 +11,11 @@
performance, portfolio, software, stock, trading, wealth, web3
</li>
<li i18n="@@myAccount">My Account</li>
<li i18n="@@rule.feeRatioInitialInvestment.exceed">
<li i18n="@@rule.feeRatioInitialInvestment.false">
The fees do exceed &#123;thresholdMax&#125;% of your initial investment
(&#123;feeRatio&#125;%)
</li>
<li i18n="@@rule.feeRatioInitialInvestment.notExceed">
<li i18n="@@rule.feeRatioInitialInvestment.true">
The fees do not exceed &#123;thresholdMax&#125;% of your initial
investment (&#123;feeRatio&#125;%)
</li>

Loading…
Cancel
Save