Skip to content

Commit

Permalink
#59166 настройка дистанции офисов
Browse files Browse the repository at this point in the history
  • Loading branch information
Serg Akudovich committed Sep 27, 2021
1 parent 53704fb commit 1173c41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion js/vm/Models/HotelSearchResultsModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ define(
if (hasCoordinates && searchData.results.offices) {
searchData.results.offices.map(function (office) {
var distance = self.getDistance(hotel, office);
if (distance < HotelsFiltersViewModel.OFFICE_DISTANCE && distance > -HotelsFiltersViewModel.OFFICE_DISTANCE) {
if (distance < office.distance && distance > -office.distance) {
hotel.hotelOffice = office;
}
})
Expand Down
2 changes: 0 additions & 2 deletions js/vm/Models/HotelsFiltersViewModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,6 @@ define(['js/vm/Models/SliderViewModel', 'js/vm/Models/HotelsBaseModel', 'js/vm/h

HotelsFiltersViewModel.STARS_MAX_COUNT = 5;

HotelsFiltersViewModel.OFFICE_DISTANCE = 1000;

helpers.extendModel(HotelsFiltersViewModel, [HotelsBaseModel]);

return HotelsFiltersViewModel;
Expand Down

0 comments on commit 1173c41

Please sign in to comment.