Skip to content

Commit b71dfea

Browse files
author
Saulo Benigno
committed
axios params
1 parent 5742dae commit b71dfea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Table.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const Table = (props) => {
1919
console.error("ops! error: " + err);
2020
});
2121

22-
api.get("./data/socials.json")
22+
api.get("./data/socials.json", { params: { symbol: props.symbol } })
2323
.then((response) => {
2424
const data = response.data.filter(social => social.Symbol.includes(props.symbol))
2525
setSocialMedia(data.map(function (img) { return img['Media']; }));

0 commit comments

Comments
 (0)