File tree Expand file tree Collapse file tree 2 files changed +10
-16
lines changed
Expand file tree Collapse file tree 2 files changed +10
-16
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 = ( ) => {
You can’t perform that action at this time.
0 commit comments