add sample case for not showing currency option

This commit is contained in:
MaysWind
2024-12-22 11:25:23 +08:00
parent 50c2766014
commit d465d9da1a
+2 -6
View File
@@ -869,12 +869,8 @@ function getAllCurrencyDisplayTypes(userStore, settingsStore, translateFn) {
for (let i = 0; i < currencyConstants.allCurrencyDisplayTypeArray.length; i++) {
const type = currencyConstants.allCurrencyDisplayTypeArray[i];
let displayName = translateFn(type.name);
if (type.symbol !== currencyConstants.allCurrencyDisplaySymbol.None) {
const sampleValue = getFormattedAmountWithCurrency(12345, defaultCurrency, translateFn, userStore, settingsStore, false, type);
displayName = `${displayName} (${sampleValue})`
}
const sampleValue = getFormattedAmountWithCurrency(12345, defaultCurrency, translateFn, userStore, settingsStore, false, type);
const displayName = `${translateFn(type.name)} (${sampleValue})`
ret.push({
type: type.type,