refactor: remove console.logs

This commit is contained in:
Victor Gerbrands 2023-05-04 14:19:46 +02:00
parent 18ce43d0a4
commit 28c0fe95ed
2 changed files with 0 additions and 5 deletions

View File

@ -99,7 +99,6 @@ export default async function ProductPage({ params }: { params: { handle: string
}
async function RelatedProducts({ id }: { id: string }) {
console.log(id);
// const relatedProducts = await getProductRecommendations(id);
const relatedProducts: any[] = [];

View File

@ -146,16 +146,12 @@ const reshapeLineItem = (lineItem: MedusaLineItem): CartItem => {
};
const reshapeProduct = (product: MedusaProduct): Product => {
console.log({
amount: product.variants?.[0]?.prices?.[0]?.amount
});
const priceRange = {
maxVariantPrice: {
amount: product.variants?.[0]?.prices?.[0]?.amount.toString() ?? '0',
currencyCode: product.variants?.[0]?.prices?.[0]?.currency_code ?? ''
}
};
console.log({ priceRange });
const updatedAt = product.updated_at;
const tags = product.tags?.map((tag) => tag.value) || [];
const descriptionHtml = product.description ?? '';