fix
This commit is contained in:
parent
f1947c0e00
commit
37c3b88bb1
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
import { bookUrl } from "./bookUrl";
|
||||
import { extractPriceFrom } from "./extractPriceFrom";
|
||||
import { getRate } from "./rates";
|
||||
import { convertPrice } from "./convertPrice";
|
||||
import { cacheBookPrice, getBookPrice } from "./cache";
|
||||
import { format, isToday } from "date-fns";
|
||||
|
||||
|
@ -23,7 +24,7 @@ export const bookPriceFor = async (country) => {
|
|||
if (countryPrice) {
|
||||
l("found price", countryPrice, url);
|
||||
const rate = await getRate(country.currencyCode);
|
||||
convertedPrice = await convertedPrice(
|
||||
convertedPrice = await convertPrice(
|
||||
countryPrice,
|
||||
country.currencyCode,
|
||||
rate,
|
||||
|
|
Loading…
Reference in a new issue