diff --git a/packages/react-instantsearch-dom-geo/src/GoogleMaps.js b/packages/react-instantsearch-dom-geo/src/GoogleMaps.js index 915bade1a4..6241b9f000 100644 --- a/packages/react-instantsearch-dom-geo/src/GoogleMaps.js +++ b/packages/react-instantsearch-dom-geo/src/GoogleMaps.js @@ -24,7 +24,7 @@ class GoogleMaps extends Component { }; state = { - isMapAlreadyRender: false, + isMapReady: false, }; getChildContext() { @@ -53,7 +53,7 @@ class GoogleMaps extends Component { }); this.setState(() => ({ - isMapAlreadyRender: true, + isMapReady: true, })); } @@ -85,12 +85,12 @@ class GoogleMaps extends Component { render() { const { cx, children } = this.props; - const { isMapAlreadyRender } = this.state; + const { isMapReady } = this.state; return (
(this.element = c)} className={cx('')}>
- {isMapAlreadyRender && children} + {isMapReady && children}
); } diff --git a/packages/react-instantsearch-dom-geo/src/__tests__/GoogleMaps.js b/packages/react-instantsearch-dom-geo/src/__tests__/GoogleMaps.js index 5e04d8fbdf..0c813de69a 100644 --- a/packages/react-instantsearch-dom-geo/src/__tests__/GoogleMaps.js +++ b/packages/react-instantsearch-dom-geo/src/__tests__/GoogleMaps.js @@ -39,7 +39,7 @@ describe('GoogleMaps', () => { expect(wrapper).toMatchSnapshot(); expect(wrapper.state()).toEqual({ - isMapAlreadyRender: false, + isMapReady: false, }); }); @@ -59,7 +59,7 @@ describe('GoogleMaps', () => { expect(wrapper).toMatchSnapshot(); expect(wrapper.state()).toEqual({ - isMapAlreadyRender: false, + isMapReady: false, }); // Simulate didMount @@ -70,7 +70,7 @@ describe('GoogleMaps', () => { expect(wrapper).toMatchSnapshot(); expect(wrapper.state()).toEqual({ - isMapAlreadyRender: true, + isMapReady: true, }); });