Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Commit

Permalink
fixed completion of event
Browse files Browse the repository at this point in the history
  • Loading branch information
Serge Hänni committed Feb 13, 2017
1 parent 0ffc857 commit 09c1bf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/booked.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const bookedStatusSubMessage = (currentEvent) => {
return `for the next ${remainingTime}`;
}

const Booked = ({ nextEvent, onClick}) => {
const remainingTimeMessage = isEmpty(nextEvent) ? null : bookedStatusSubMessage(nextEvent);
const Booked = ({ currentEvent, onClick}) => {
const remainingTimeMessage = isEmpty(currentEvent) ? null : bookedStatusSubMessage(currentEvent);

return (
<div className='status-details' key={1}>
Expand Down
4 changes: 2 additions & 2 deletions src/components/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export default class Status extends Component {

let statusComponent = this.isBooked() ?
<Booked
onClick={() => onFinishReservation(nextEvent.id)}
nextEvent={currentEvent}
onClick={() => onFinishReservation(currentEvent.id)}
currentEvent={currentEvent}
key={1}
/> :
<Free
Expand Down

0 comments on commit 09c1bf6

Please sign in to comment.