From b720d954592771433f9bf3b32001e560902904cf Mon Sep 17 00:00:00 2001 From: Steven Viar Date: Mon, 2 Mar 2020 12:30:26 -0500 Subject: [PATCH] fix(Layout): added check for when the shopify_checkout_id is set to 'null' (#323) --- src/components/Layout/Layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Layout/Layout.js b/src/components/Layout/Layout.js index ad090e9f..b7015574 100644 --- a/src/components/Layout/Layout.js +++ b/src/components/Layout/Layout.js @@ -216,7 +216,7 @@ export default class Layout extends React.Component { const createNewCheckout = () => this.state.store.client.checkout.create(); const fetchCheckout = id => this.state.store.client.checkout.fetch(id); - if (existingCheckoutID) { + if (existingCheckoutID && existingCheckoutID !== 'null') { try { const checkout = await fetchCheckout(existingCheckoutID);