mirror of
https://github.com/vercel/commerce.git
synced 2025-06-07 00:36:59 +00:00
refactor: remove console.logs
This commit is contained in:
parent
18ce43d0a4
commit
28c0fe95ed
@ -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[] = [];
|
||||
|
||||
|
@ -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 ?? '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user