✏️ Fix typo in Readme (#26)

This commit is contained in:
Alexandre Behaghel 2022-04-20 13:32:52 +02:00 committed by GitHub
parent 52c44d4f1f
commit 080bbec544
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,10 +114,10 @@ export const convertDollarAmountInCountryCurrency = (amountInDollar: number) =>
either.map(convertDollarAmountToCountryCodeCurrency(amountInDollar)),
);
const convertDollarAmountInCountryCodeCurrency =
const convertDollarAmountToCountryCodeCurrency =
(amountInDollar: number) => (countryCode: CountryCode) =>
pipe(
getCurrencyFromCountryCode(countryCode),
getCountryCurrency(countryCode),
option.map(convertFromDollarAmount(amountInDollar)),
option.map(convertedAmount =>
console.log(