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

Commit 53461c9

Browse files
committed
Push progress for Evan - SchoolCard rendering now
1 parent 31d3bd7 commit 53461c9

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

src/scenes/home/codeSchools/codeSchools.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
margin: 2.5% 0;
1212
}
1313

14-
p {
15-
text-align: center;
16-
}
17-
1814
.leadingParagraph {
1915
font-size: 2rem;
2016
}

src/scenes/home/codeSchools/stateSortedSchools/stateSortedSchools.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,20 @@ class StateSortedSchools extends Component {
4545
}
4646

4747
this.state.schools.forEach((school) => {
48-
for (location of school.locations.filter(_school => matchesState(_school, userInput))) {
48+
school.locations.filter(_school => matchesState(_school, userInput)).forEach((location) => {
4949
schools.push({
5050
name: school.name,
5151
url: school.url,
52-
address: school.location.address1,
53-
city: school.location.city,
54-
state: school.location.state,
55-
zip: school.location.zip,
56-
va_accepted: school.location.va_accepted,
52+
address: location.address1,
53+
city: location.city,
54+
state: location.state,
55+
zip: location.zip,
56+
logo: school.logo,
57+
va_accepted: location.va_accepted,
5758
full_time: school.full_time,
5859
hardware_included: school.hardware_included
5960
});
60-
}
61+
});
6162
});
6263

6364
return schools;

0 commit comments

Comments
 (0)