diff --git a/src/libs/CurrencyUtils.ts b/src/libs/CurrencyUtils.ts index 1c7dd68dea72..21784d450a07 100644 --- a/src/libs/CurrencyUtils.ts +++ b/src/libs/CurrencyUtils.ts @@ -111,12 +111,9 @@ function convertToDisplayString(amountInCents: number, currency: string = CONST. /** * Checks if passed currency code is a valid currency based on currency list - * - * @param {String} currencyCode - * @returns {Boolean} */ -function isValidCurrencyCode(currencyCode) { - const currency = lodashGet(currencyList, currencyCode); +function isValidCurrencyCode(currencyCode: string): boolean { + const currency = currencyList?.[currencyCode]; return Boolean(currency); }