diff --git a/frontend/src/components/ViewTrips/create-new-trip.js b/frontend/src/components/ViewTrips/create-new-trip.js index 13200900..03bbf12e 100644 --- a/frontend/src/components/ViewTrips/create-new-trip.js +++ b/frontend/src/components/ViewTrips/create-new-trip.js @@ -81,8 +81,8 @@ function formatTripData(rawTripObj) { { trip_creation_time: firebase.firestore.Timestamp.now(), name: getTripName(rawTripObj.name), - description: getTripDestination(rawTripObj.destination), - destination: rawTripObj.description, + description: rawTripObj.description, + destination: getTripDestination(rawTripObj.destination), start_date: getTimestampFromDateString(rawTripObj.startDate), end_date: getTimestampFromDateString(rawTripObj.endDate), collaborators: getCollaboratorUidArray(rawTripObj.collaboratorEmails) diff --git a/frontend/src/components/ViewTrips/trip.js b/frontend/src/components/ViewTrips/trip.js index 8b197a90..f4232517 100644 --- a/frontend/src/components/ViewTrips/trip.js +++ b/frontend/src/components/ViewTrips/trip.js @@ -44,9 +44,9 @@ const Trip = (props) => { return (
{props.tripObj.description}
-{getDateRange(props.tripObj)}
{props.tripObj.destination}
+{getDateRange(props.tripObj)}
+{props.tripObj.description}
{getCollaboratorEmails(props.tripObj.collaborators)}
{/* TODO(Issue 15): Add edit trip page. */}