Skip to content

Commit

Permalink
fix: subs display for variations
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardo-larosa committed Dec 22, 2024
1 parent 84378fa commit 87cae7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default async function ProductPage({ params }: Props) {
console.log(`product: ${JSON.stringify(product, null, 2)}`);
//set the productId to the base product to search for subscriptions
let productId = params.productId;
if (product.data.attributes.base_product) {
if (!product.data.attributes.base_product) {
productId = product.data.attributes.base_product_id;
}
console.log(`productId: ${productId}`);
Expand Down

0 comments on commit 87cae7a

Please sign in to comment.