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 }