From 1a43a0ab57c38ff50099b4b864463674d497bebf Mon Sep 17 00:00:00 2001 From: cond0r Date: Thu, 4 Feb 2021 18:09:20 +0200 Subject: [PATCH] changes --- framework/shopify/product/get-product.ts | 2 -- framework/shopify/utils/get-checkout-id.ts | 4 +--- next.config.js | 3 --- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/framework/shopify/product/get-product.ts b/framework/shopify/product/get-product.ts index e5a5469c0..84e74c611 100644 --- a/framework/shopify/product/get-product.ts +++ b/framework/shopify/product/get-product.ts @@ -29,8 +29,6 @@ const getProduct = async (options: { const product = data?.productByHandle - console.info(normalizeProduct(product)) - return { product: product ? normalizeProduct(product) : null, } diff --git a/framework/shopify/utils/get-checkout-id.ts b/framework/shopify/utils/get-checkout-id.ts index 5d35513a5..11e3802d9 100644 --- a/framework/shopify/utils/get-checkout-id.ts +++ b/framework/shopify/utils/get-checkout-id.ts @@ -2,9 +2,7 @@ import Cookies from 'js-cookie' import { SHOPIFY_CHECKOUT_ID_COOKIE } from '../const' const getCheckoutId = (id?: string) => { - const checkoutID = id ?? Cookies.get(SHOPIFY_CHECKOUT_ID_COOKIE) - console.log(checkoutID) - return checkoutID + return id ?? Cookies.get(SHOPIFY_CHECKOUT_ID_COOKIE) } export default getCheckoutId diff --git a/next.config.js b/next.config.js index abdfe251c..3c9e37210 100644 --- a/next.config.js +++ b/next.config.js @@ -34,7 +34,4 @@ module.exports = { }, ] }, - typescript: { - ignoreBuildErrors: true, - }, }