Skip to content

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
VickyStash committed Sep 25, 2023
1 parent 98a9b3d commit 42d21e2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/libs/CurrencyUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 42d21e2

Please sign in to comment.