From 3a14b5d4709930801cbf7e1165bb28ffe0ddb530 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 22 Feb 2021 18:53:29 +0100 Subject: [PATCH] invoices --- packages/dashboard/src/pages/api/square/invoices.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/dashboard/src/pages/api/square/invoices.js b/packages/dashboard/src/pages/api/square/invoices.js index 3a9c465c..ee10e157 100644 --- a/packages/dashboard/src/pages/api/square/invoices.js +++ b/packages/dashboard/src/pages/api/square/invoices.js @@ -28,6 +28,9 @@ const api = { res.json(invoices); } catch (error) { + console.log(error); + console.log(error?.errors?.body); + res.json([]); // todo: error handling } },