Skip to content

Commit

Permalink
Merge pull request #3 from neuefische/feat/add-get-request
Browse files Browse the repository at this point in the history
added refactoring
  • Loading branch information
Olgasyla authored Aug 16, 2024
2 parents b4be14c + 4fb0e52 commit 898bdf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/componets/ProductList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function ProductList() {
<h1>Einkaufsliste</h1>
<ul>
{products.map(product => (
<li key={product.id}>{product.name} - Menge: {product.ammount}</li>
<li key={product.id}>{product.name} - Menge: {product.amount}</li>
))}
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/models/product.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type Product ={
id: string,
name: string,
ammount: number,
amount: number,
}

0 comments on commit 898bdf1

Please sign in to comment.