diff --git a/src/App.js b/src/App.js
index 7aa52c7..a888e3c 100644
--- a/src/App.js
+++ b/src/App.js
@@ -20,7 +20,6 @@ function App() {
-
@@ -29,6 +28,7 @@ function App() {
+
diff --git a/src/components/Home.js b/src/components/Home.js
index 7263234..116ca78 100644
--- a/src/components/Home.js
+++ b/src/components/Home.js
@@ -9,12 +9,7 @@ export default function Home() {
>
- {state.Pools.map((Pool, el) => {
+ {pools.map((pool, index) => {
let background;
- if (el % 2 === 0) {
+ if (index % 2 === 0) {
background = '#F1EAE8';
} else {
background = '#FFFFFF';
@@ -98,16 +96,16 @@ const Pools = (props) => {
className="card card-body text-left"
style={{ backgroundColor: background }}
>
-
- {Pool.pool_title}
+
+ {pool.pool_title}
- Capacity: {Pool.participants.length} / {Pool.capacity}
+ Capacity: {pool.participants.length} / {pool.capacity}
-
Start Time: {Pool.start_time}
-
End Time: {Pool.end_time}
+
Start Time: {pool.start_time}
+
End Time: {pool.end_time}
- {maybePluralize(Pool.comments.length, 'comment')}
+ {maybePluralize(pool.comments.length, 'comment')}
);