diff --git a/src/pages/travelers/TravelerEditForm.js b/src/pages/travelers/TravelerEditForm.js index dc142bb..8b1098a 100644 --- a/src/pages/travelers/TravelerEditForm.js +++ b/src/pages/travelers/TravelerEditForm.js @@ -48,8 +48,8 @@ const TravelerEditForm = () => { if (currentUser?.traveler_id?.toString() === id) { try { const { data } = await axiosReq.get(`/travelers/${id}/`); - const { name, content, image } = data; - setTravelerData({ name, content, image }); + const { name, content, image, favorite_place, one_important_thing } = data; + setTravelerData({ name, content, image, favorite_place, one_important_thing }); } catch (err) { console.log(err); history.push("/"); @@ -112,13 +112,32 @@ const TravelerEditForm = () => { {message} ))} + + What is your favorite place on earth? + + + If you could only pack one thing on your next trip, what would + it be? + + + - @@ -162,25 +181,7 @@ const TravelerEditForm = () => { }} /> - - What is your favorite place on earth? - - - If you could only pack one thing on your next trip, what would - it be? - - - +
{textFields}