Skip to content

Commit

Permalink
replace Log.alert with console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
war-in committed Jun 3, 2024
1 parent 05c03d4 commit 5e52e7c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/ExpensiMark.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand All @@ -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';
}

Expand Down Expand Up @@ -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';
}

Expand All @@ -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]}`;
Expand Down

0 comments on commit 5e52e7c

Please sign in to comment.