From 2d4e7b6af8a12bae486f212d57777434a00b5e04 Mon Sep 17 00:00:00 2001 From: Aizizi Yigaimu Date: Thu, 16 Apr 2020 16:52:54 -0400 Subject: [PATCH] Replace placeName variables --- src/components/AddressSearchBGroup/index.js | 2 +- src/containers/BGroup/BGroupBuildingTable.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/AddressSearchBGroup/index.js b/src/components/AddressSearchBGroup/index.js index 1301adaa..97f392ba 100644 --- a/src/components/AddressSearchBGroup/index.js +++ b/src/components/AddressSearchBGroup/index.js @@ -31,7 +31,7 @@ class AddressSearchBGroup extends Component { if (this.props.buildings !== nextProps.buildings && nextProps.buildings.length > 0) { this.setState({ bGroupBuildings: this.props.bGroupBuildings, - address: nextProps.buildings[0].placeName, + address: nextProps.buildings[0].place_name, }); } if (this.props.buildings.length === 0 && nextProps.buildings.length > 0) { diff --git a/src/containers/BGroup/BGroupBuildingTable.js b/src/containers/BGroup/BGroupBuildingTable.js index c9240a47..dd3d526d 100644 --- a/src/containers/BGroup/BGroupBuildingTable.js +++ b/src/containers/BGroup/BGroupBuildingTable.js @@ -47,7 +47,7 @@ export default class BGroupBuildingTable extends Component { this.props.addBuildingToBGroup( this.props.bGroupId, { building_ids: [building.building_id] }, - building.placeName, + building.place_name, ); this.setState({ increaseNum: true }); } -- GitLab