From 5e52e7cb88e1088ae35450622bb491a79568e3db Mon Sep 17 00:00:00 2001 From: war-in Date: Mon, 3 Jun 2024 17:00:51 +0200 Subject: [PATCH] replace `Log.alert` with `console.log` --- lib/ExpensiMark.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/ExpensiMark.js b/lib/ExpensiMark.js index 6b77fcee..5d499992 100644 --- a/lib/ExpensiMark.js +++ b/lib/ExpensiMark.js @@ -493,7 +493,8 @@ export default class ExpensiMark { replacement: (match, g1, offset, string, extras) => { const reportToNameMap = extras.reportIDToName; if (!reportToNameMap || !reportToNameMap[g1]) { - Log.alert('[ExpensiMark] Missing report name', {reportID: g1}); + // eslint-disable-next-line no-console + console.warn('[ExpensiMark] Missing report name', {reportID: g1}); return '#Hidden'; } @@ -507,7 +508,8 @@ export default class ExpensiMark { if (g1) { const accountToNameMap = extras.accountIDToName; if (!accountToNameMap || !accountToNameMap[g1]) { - Log.alert('[ExpensiMark] Missing account name', {accountID: g1}); + // eslint-disable-next-line no-console + console.warn('[ExpensiMark] Missing account name', {accountID: g1}); return '@Hidden'; } @@ -565,7 +567,8 @@ export default class ExpensiMark { replacement: (match, g1, offset, string, extras) => { const reportToNameMap = extras.reportIDToName; if (!reportToNameMap || !reportToNameMap[g1]) { - Log.alert('[ExpensiMark] Missing report name', {reportID: g1}); + // eslint-disable-next-line no-console + console.warn('[ExpensiMark] Missing report name', {reportID: g1}); return '#Hidden'; } @@ -578,7 +581,8 @@ export default class ExpensiMark { replacement: (match, g1, offset, string, extras) => { const accountToNameMap = extras.accountIDToName; if (!accountToNameMap || !accountToNameMap[g1]) { - Log.alert('[ExpensiMark] Missing account name', {accountID: g1}); + // eslint-disable-next-line no-console + console.warn('[ExpensiMark] Missing account name', {accountID: g1}); return '@Hidden'; } return `@${extras.accountIDToName[g1]}`;