Skip to content

Commit

Permalink
fix(frontend): change console log msg check to type check
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 25, 2024
1 parent d9fe0b6 commit 6daffad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const SUPPRESSED_WARNINGS = [
];

console.error = function filterWarnings(msg, ...args) {
if (!msg) {
if (typeof msg !== 'string') {
consoleError(...args);
} else if (!SUPPRESSED_WARNINGS.some((entry) => msg.includes(entry))) {
consoleError(msg, ...args);
Expand Down

0 comments on commit 6daffad

Please sign in to comment.