diff --git a/src/index.js b/src/index.js index 8bcbe75b6300d02351b255091cc6433e6bd6c9dd..fa4f236e3951bcc610e945f3a3a146a726baa6a9 100644 --- a/src/index.js +++ b/src/index.js @@ -60,7 +60,7 @@ async function start(fields, cozyParameters) { const eglData = await getData(response, baseUrl, apiAuthKey) - if (!eglData) { + if (eglData.length === 0) { log('debug', 'No data found') return }