Skip to content

Commit

Permalink
Merge pull request #2089 from KyleKayfish/release/base-2.x
Browse files Browse the repository at this point in the history
EMBCESSMOD-4890: Removed toString during dupe compare.
  • Loading branch information
KyleKayfish authored Apr 25, 2024
2 parents c3ece89 + 098a4ff commit 7b01249
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ export class SupportDetailsComponent implements OnInit, OnDestroy {
);
const overlappingFoodSupports = existingSupports.filter(
(s) =>
(this.generateSupportType(s) === SupportSubCategory.Food_Groceries.toString() || this.generateSupportType(s) === SupportSubCategory.Food_Restaurant.toString()) &&
(this.stepSupportsService.supportTypeToAdd.description == SupportSubCategory.Food_Groceries.toString() || this.stepSupportsService.supportTypeToAdd.description == SupportSubCategory.Food_Restaurant.toString()) &&
(this.generateSupportType(s) === SupportSubCategory.Food_Groceries || this.generateSupportType(s) === SupportSubCategory.Food_Restaurant) &&
(this.stepSupportsService.supportTypeToAdd.description === SupportSubCategory.Food_Groceries || this.stepSupportsService.supportTypeToAdd.description === SupportSubCategory.Food_Restaurant) &&
moment(to).isSameOrAfter(moment(s.from)) &&
moment(from).isSameOrBefore(moment(s.to))
);
Expand Down

0 comments on commit 7b01249

Please sign in to comment.