From 78597c60c74cd635df49496440b9b71b3974de71 Mon Sep 17 00:00:00 2001 From: Daniel Ruiz Date: Thu, 14 Sep 2023 12:49:08 +0200 Subject: [PATCH] remove n-logger use console.error --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 2ff2429..f070141 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,6 @@ const surveyBuilder = require('./src/survey-builder'); const postResponse = require('./src/post-response'); const getAdditionalInfo = require('./src/get-additional-info'); const dictionary = require('./src/dictionary'); -const logger = require('@financial-times/n-logger').default; function getSurveyData(surveyId) { @@ -180,7 +179,8 @@ module.exports.init = (appInfo = {}) => { const container = document.querySelector(`${containerSelector} .n-feedback__container`); if (!container) { - logger.error('The container was not found on the page.') + // eslint-disable-next-line no-console + console.error('The container was not found on the page.') throw new Error('The container was not found on the page.'); } container.classList.remove('n-feedback--hidden');