Browse Source

fix(rule): format thresholdMin using locale in Buying Power rule (#5808)

pull/5824/head
Daniel Okoro 1 week ago
parent
commit
ec14d9a336
  1. 4
      apps/api/src/models/rules/liquidity/buying-power.ts

4
apps/api/src/models/rules/liquidity/buying-power.ts

@ -40,7 +40,7 @@ export class BuyingPower extends Rule<Settings> {
languageCode: this.getLanguageCode(),
placeholders: {
baseCurrency: ruleSettings.baseCurrency,
thresholdMin: ruleSettings.thresholdMin
thresholdMin: ruleSettings.thresholdMin.toLocaleString(ruleSettings.locale)
}
}),
value: false
@ -53,7 +53,7 @@ export class BuyingPower extends Rule<Settings> {
languageCode: this.getLanguageCode(),
placeholders: {
baseCurrency: ruleSettings.baseCurrency,
thresholdMin: ruleSettings.thresholdMin
thresholdMin: ruleSettings.thresholdMin.toLocaleString(ruleSettings.locale)
}
}),
value: true

Loading…
Cancel
Save