Skip to content

Commit

Permalink
fix: Update Home.js to use correct briefingList based on category
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawon00 committed Jul 21, 2024
1 parent c6e9597 commit 302ec23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions breifing/src/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const Home = () => {
{category === "전체" || category === "글로벌" ? (
<React.Fragment>
<GlobalBox
briefingList={newsItem.social}
briefingList={newsItem.global}
date={date.toISOString().split("T")[0]}
timeOfDay={timeOfDay}
/>
Expand All @@ -129,7 +129,7 @@ const Home = () => {
{category === "전체" || category === "경제" ? (
<React.Fragment>
<EconomyBox
briefingList={newsItem.social}
briefingList={newsItem.economy}
date={date.toISOString().split("T")[0]}
timeOfDay={timeOfDay}
/>
Expand All @@ -142,7 +142,7 @@ const Home = () => {
{category === "전체" || category === "과학" ? (
<React.Fragment>
<ScienceBox
briefingList={newsItem.social}
briefingList={newsItem.science}
date={date.toISOString().split("T")[0]}
timeOfDay={timeOfDay}
/>
Expand Down

0 comments on commit 302ec23

Please sign in to comment.