forked from crowetic/commerce
Dont reco on 1
This commit is contained in:
parent
9c3cc1f8b6
commit
59a00fe9ea
@ -48,6 +48,7 @@ export async function getPitch({ currentProduct }: { currentProduct: Product })
|
||||
const products = cart.lines
|
||||
.filter((line) => line.merchandise.product.id !== currentProduct.id)
|
||||
.map((line) => `"${line.merchandise.product.title}"`);
|
||||
if (!products.length) return null;
|
||||
|
||||
const prompt = `Write a 30 word pitch for why a person who has ${products.join(
|
||||
' and '
|
||||
|
Loading…
x
Reference in New Issue
Block a user