From c3497565c37ef401d4d7fa36df2a6d69e46757fb Mon Sep 17 00:00:00 2001 From: viniciusLouzada Date: Fri, 7 Jun 2024 04:43:25 -0300 Subject: [PATCH] fix: makes comparison between sla's and pickupPoints id's more restricted --- react/utils/SlasUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/utils/SlasUtils.js b/react/utils/SlasUtils.js index c037c1e..3769345 100644 --- a/react/utils/SlasUtils.js +++ b/react/utils/SlasUtils.js @@ -23,9 +23,9 @@ export function isPickup(deliveryChannelSource) { export function findSla(li, pickupPoint) { return li.slas.find((sla) => { - const hasSameId = sla.id && sla.id.includes(pickupPoint.id) + const hasSameId = sla.id && sla.id === pickupPoint.id const hasSamePickupPointId = - sla.pickupPointId && sla.pickupPointId.includes(pickupPoint.id) + sla.pickupPointId && sla.pickupPointId === pickupPoint.id return hasSameId || hasSamePickupPointId })