From 68fae058b0b5554d9b92d4e21301e3b02aaae545 Mon Sep 17 00:00:00 2001 From: boygirl Date: Thu, 10 Aug 2017 10:21:56 -0700 Subject: [PATCH] fix containerId bug --- src/victory-container/victory-container.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {