Skip to content

Commit

Permalink
Merge branch 'cart-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
kencruz committed Dec 17, 2020
2 parents 9e8c96e + b75d151 commit 898bc90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const Cart = ({location}) => {
{...rest}
removeFromCart={item => handleRemoveFromCart(item)}
/>
{!loading && !completed && (
{!loading && !completed && items.length > 0 && (
<CartSummary {...meta} handleCheckout={handleCheckout} />
)}
</Layout>
Expand Down
2 changes: 1 addition & 1 deletion wrap-with-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const cache = new InMemoryCache()
const client = new ApolloClient({
cache,
credentials: 'include',
uri: 'https://demo.vendure.io/shop-api',
uri: process.env.VENDURE_SHOP_API,
resolvers: {
Mutation: {
setActiveOrderId: (_, {id}, {cache: apolloCache}) => {
Expand Down

0 comments on commit 898bc90

Please sign in to comment.