Skip to content

Commit

Permalink
updated warning to use logWarning function
Browse files Browse the repository at this point in the history
  • Loading branch information
terahn committed Jul 2, 2020
1 parent a2880d5 commit 8fa862a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/node/Node.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";

import nodeHelper from "./node.helper";
import CONST from "./node.const";
import { logWarning } from "../../utils";

/**
* Node component is responsible for encapsulating node render.
Expand Down Expand Up @@ -136,7 +137,7 @@ export default class Node extends React.Component {
gty -= ty;
} else {
if (typeof size === "object") {
console.warn("node.size should be a number when not using custom nodes.");
logWarning("node.size should be a number when not using custom nodes.");
size = CONST.DEFAULT_NODE_SIZE;
}
nodeProps.d = nodeHelper.buildSvgSymbol(size, this.props.type);
Expand Down

0 comments on commit 8fa862a

Please sign in to comment.