From d465d9da1adc8c611ce94412a4366eeb441b3fb5 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 22 Dec 2024 11:25:23 +0800 Subject: [PATCH] add sample case for not showing currency option --- src/lib/i18n.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib/i18n.js b/src/lib/i18n.js index 3d4cbfcf..fcd6fac2 100644 --- a/src/lib/i18n.js +++ b/src/lib/i18n.js @@ -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,