Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Commit d0833b4

Browse files
committed
update
1 parent ee00a36 commit d0833b4

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/scenes/home/codeSchools/approvedSchools/approvedSchools.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ class ApprovedSchools extends Component {
1111
constructor(props) {
1212
super(props);
1313
this.state = {
14-
schools: null,
1514
vaSchools: null
1615
};
17-
18-
gettingSchoolData.then(data => this.setState({ schools: data }));
1916
}
2017

2118
componentWillMount() {
22-
this.setState({ vaSchools: this.getApprovedSchools(this.state.schools) });
19+
gettingSchoolData.then((data) => {
20+
this.setState({ vaSchools: this.getApprovedSchools(data) });
21+
});
2322
}
2423

2524
getApprovedSchools = (schools) => {

0 commit comments

Comments
 (0)