diff --git a/app/frontend/src/javascript/directives/cart.js b/app/frontend/src/javascript/directives/cart.js index 5fabc96ad..da8865547 100644 --- a/app/frontend/src/javascript/directives/cart.js +++ b/app/frontend/src/javascript/directives/cart.js @@ -456,7 +456,7 @@ Application.Directives.directive('cart', ['$rootScope', '$uibModal', 'dialogs', * @param callback {function} */ const validateSameTimeReservations = function (slot, callback) { - $scope.settings.overlapping_categories.split(',').map(function (k) { + let sameTimeReservations = $scope.settings.overlapping_categories.split(',').map(function (k) { return _.filter($scope.user[k], function (r) { return slot.start.isSame(r.start_at) || (slot.end.isAfter(r.start_at) && slot.end.isBefore(r.end_at)) ||