Skip to content

Commit 2da56c8

Browse files
author
dapetri
committed
closing to public
1 parent a9b20ad commit 2da56c8

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dafolio",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"private": true,
55
"dependencies": {
66
"@testing-library/jest-dom": "^5.16.5",

src/components/pages/Map.js

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -167,21 +167,15 @@ export const Map = () => {
167167
};
168168

169169
const postLocationData = async (data) => {
170-
try {
171-
const response = await axios.post(
172-
`${process.env.REACT_APP_API_BASE_URL}/locations`,
173-
data,
174-
{
175-
headers: {
176-
"Content-Type": "application/json",
177-
},
178-
}
179-
);
180-
181-
console.log("Location data posted successfully:", response.data);
182-
} catch (error) {
183-
console.error("Error posting location data:", error);
184-
}
170+
await axios.post(
171+
`${process.env.REACT_APP_API_BASE_URL}/locations`,
172+
data,
173+
{
174+
headers: {
175+
"Content-Type": "application/json",
176+
},
177+
}
178+
);
185179
};
186180

187181
const addUserLocation = () => {

0 commit comments

Comments
 (0)