Skip to content
This repository was archived by the owner on Mar 27, 2018. It is now read-only.

Commit d7c98aa

Browse files
committed
fix(deprecations): use console.warn instead of console.error
1 parent 665f315 commit d7c98aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import waitForHnData from './DrupalPage/waitForHnData';
88
let warningParagraphDeprecation = false;
99
const Paragraph = (p) => {
1010
if(!warningParagraphDeprecation) {
11-
console.error('Warning: The component "Paragraph" is deprecated, use "EntityMapper" instead.');
11+
console.warn('Warning: The component "Paragraph" is deprecated, use "EntityMapper" instead.');
1212
warningParagraphDeprecation = true;
1313
}
1414
return <EntityMapper {...p} />;
@@ -17,7 +17,7 @@ const Paragraph = (p) => {
1717
let warningParagraphsDeprecation = false;
1818
const Paragraphs = (p) => {
1919
if(!warningParagraphsDeprecation) {
20-
console.error('Warning: The component "Paragraphs" is deprecated, use "EntityListMapper" instead.');
20+
console.warn('Warning: The component "Paragraphs" is deprecated, use "EntityListMapper" instead.');
2121
warningParagraphsDeprecation = true;
2222
}
2323
return <EntityListMapper {...p} />;

0 commit comments

Comments
 (0)