Skip to content

Commit

Permalink
Merge branch 'edit-trip-modal-infra' into edit-trip-implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
zghera committed Jul 16, 2020
2 parents 7f85290 + 8c5d98a commit dc8f49b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/ViewTrips/create-new-trip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/ViewTrips/trip.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ const Trip = (props) => {
return (
<div>
<h2>{name}</h2>
<p>{description}</p>
<p>{getDateRange(props.tripData)}</p>
<p>{destination}</p>
<p>{getDateRange(props.tripData)}</p>
<p>{description}</p>
<p>{collaboratorEmailsStr}</p>

<Button
Expand Down

0 comments on commit dc8f49b

Please sign in to comment.