From 42d21e22fae4ce8ee957ad090ec9019837e01efa Mon Sep 17 00:00:00 2001 From: Viktoryia Kliushun Date: Mon, 25 Sep 2023 10:39:49 +0200 Subject: [PATCH] Resolve conflicts --- src/libs/CurrencyUtils.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); }