File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
frontend/src/components/ViewTrips Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ function formatTripData(rawTripObj) {
81
81
{
82
82
trip_creation_time : firebase . firestore . Timestamp . now ( ) ,
83
83
name : getTripName ( rawTripObj . name ) ,
84
- description : getTripDestination ( rawTripObj . destination ) ,
85
- destination : rawTripObj . description ,
84
+ description : rawTripObj . description ,
85
+ destination : getTripDestination ( rawTripObj . destination ) ,
86
86
start_date : getTimestampFromDateString ( rawTripObj . startDate ) ,
87
87
end_date : getTimestampFromDateString ( rawTripObj . endDate ) ,
88
88
collaborators : getCollaboratorUidArray ( rawTripObj . collaboratorEmails )
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ const Trip = (props) => {
44
44
return (
45
45
< div >
46
46
< h2 > { props . tripObj . name } </ h2 >
47
- < p > { props . tripObj . description } </ p >
48
- < p > { getDateRange ( props . tripObj ) } </ p >
49
47
< p > { props . tripObj . destination } </ p >
48
+ < p > { getDateRange ( props . tripObj ) } </ p >
49
+ < p > { props . tripObj . description } </ p >
50
50
< p > { getCollaboratorEmails ( props . tripObj . collaborators ) } </ p >
51
51
52
52
{ /* TODO(Issue 15): Add edit trip page. */ }
You can’t perform that action at this time.
0 commit comments