diff --git a/src/victory-container/victory-container.js b/src/victory-container/victory-container.js index 58d68e6..cb0a60a 100644 --- a/src/victory-container/victory-container.js +++ b/src/victory-container/victory-container.js @@ -46,8 +46,8 @@ export default class VictoryContainer extends React.Component { constructor(props) { super(props); this.getTimer = this.getTimer.bind(this); - this.containerId = typeof this.props.containerId === "undefined" ? - uniqueId("victory-container-") : this.props.containerId; + this.containerId = typeof props.containerId === "undefined" ? + uniqueId("victory-container-") : props.containerId; } getChildContext() {