Skip to content

Commit bc222bd

Browse files
committed
fix: edit landingpage
1 parent e019d21 commit bc222bd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/shopping/ShoppingBudget.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { FiDollarSign } from "react-icons/fi";
44
import Button from "../Button";
55

66
const Container = styled.div`
7-
width: 520px;
7+
width: 100%;
88
height: 180px;
99
padding: 10px;
1010
display: flex;
@@ -132,7 +132,7 @@ function ShoppingBudget({ budget, present, hideButtons }) {
132132
}
133133
};
134134

135-
if (budget == null) {
135+
if (budget == null && !hideButtons) {
136136
return (
137137
<>
138138
{isEditing ? (

src/pages/LandingPage.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,11 @@ function LandingPage() {
189189
/>
190190
</UserContainer>
191191
<TrendContainer>
192-
{Array.isArray(trendItems) &&
192+
{Array.isArray(trendItems.trend) &&
193193
trendItems.map((item) => (
194194
<CurrentPriceItem
195-
key={item.id}
196-
product_name={item.name}
195+
key={item.product_id}
196+
product_name={item.product_name}
197197
current_month_price={item.current_month_price}
198198
price_decline={item.price_decline}
199199
handler={() => handleAddToCart(item)}

0 commit comments

Comments
 (0)