Skip to content

Commit 0c6f1f5

Browse files
committed
Rename variable for clarity: hideConsole to displayConsole
1 parent 0ddc665 commit 0c6f1f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ConsoleBehavior.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//ConsoleBehavior.js
22

33
function ConsoleBehavior() {
4-
// If hideConsole is undefined, proceed as true
5-
const hideConsole = process.env.REACT_APP_DISPLAY_CONSOLE;
4+
// If displayConsole is undefined, proceed as true
5+
const displayConsole = process.env.REACT_APP_DISPLAY_CONSOLE;
66

7-
if (hideConsole === 'false') {
7+
if (displayConsole === 'false') {
88
Object.keys(console).forEach(method => {
99
if (typeof console[method] === 'function') {
1010
console[method] = () => { };

0 commit comments

Comments
 (0)