From 4d3615e4930423227a79e6a8ea9a93b6986336c5 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 22 Feb 2021 18:55:35 +0100 Subject: [PATCH] invoices --- packages/dashboard/src/pages/api/square/invoices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dashboard/src/pages/api/square/invoices.js b/packages/dashboard/src/pages/api/square/invoices.js index a61411a2..1ad8471a 100644 --- a/packages/dashboard/src/pages/api/square/invoices.js +++ b/packages/dashboard/src/pages/api/square/invoices.js @@ -29,7 +29,7 @@ const api = { res.json(invoices); } catch (error) { console.log(error); - console.log(error?.errors?.body); + console.log(error?.errors); res.json([]); // todo: error handling }