Skip to content

Commit

Permalink
Fix nextAppointment bug
Browse files Browse the repository at this point in the history
  • Loading branch information
adeolabadmus committed Mar 15, 2017
1 parent 7895b24 commit a9e4cfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/mixins/patient-visits.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export default Ember.Mixin.create(PouchDbMixin, {
return null;
}
if (!outPatient) {
return futureAppointments;
let [appointment] = futureAppointments;
return appointment;
} else {
return futureAppointments.slice(0, 3);
}
Expand Down

0 comments on commit a9e4cfb

Please sign in to comment.