From c9a2b488c83dcaae0a00d2177d3bfe1f185c28bf Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Mon, 7 May 2018 16:54:27 -0400 Subject: TEST ESTSE TS ETSETST --- frontend/components/TakeMyMoney.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'frontend/components/TakeMyMoney.js') diff --git a/frontend/components/TakeMyMoney.js b/frontend/components/TakeMyMoney.js index e8b11f2..fb5f727 100644 --- a/frontend/components/TakeMyMoney.js +++ b/frontend/components/TakeMyMoney.js @@ -5,6 +5,7 @@ import Router from 'next/router'; import NProgress from 'nprogress'; import { CREATE_ORDER_MUTATION, CURRENT_USER_QUERY } from '../queries/queries'; import calcTotalPrice from '../lib/calcTotalPrice'; +import Error from './ErrorMessage'; function totalItems(cart) { return cart.reduce((tally, cartItem) => tally + cartItem.quantity, 0); @@ -29,8 +30,9 @@ class TakeMyMoney extends Component { render() { return ( - {({ data: { me } }) => { + {({ data: { me }, error }) => { if (!me || !me.cart.length) return null; + if (error) return ; return (