diff --git a/src/components/Boxes.js b/src/components/Boxes.js index b8fbc12..28ecbeb 100644 --- a/src/components/Boxes.js +++ b/src/components/Boxes.js @@ -45,7 +45,7 @@ export default function Boxes({ token }) { axios.delete(`${process.env.REACT_APP_API_URL}/boxes/${id}`, { headers: { Authorization: `Bearer ${token}` } }).then(() => { - setBoxes(boxes.filter(box => box.id !== id)); + setBoxes(boxes.filter(box => box.ID !== id)); }); };