From 94f1504ef9fd4bffaafa8bfd23f8ff791eda5dc6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Mar 2026 15:54:58 +0000 Subject: [PATCH] fix: use .some() instead of .filter() in isRecalPartOrHasChildRecalPart to return boolean Agent-Logs-Url: https://github.com/Safelite/DigitalConsumer.ISS/sessions/af7c0e65-2f59-45e0-8c49-f5c468cafa1a Co-authored-by: katiekroell <100247286+katiekroell@users.noreply.github.com> --- src/helpers/recal-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/recal-helper.js b/src/helpers/recal-helper.js index 68fdd51c..c6cce97e 100644 --- a/src/helpers/recal-helper.js +++ b/src/helpers/recal-helper.js @@ -11,7 +11,7 @@ export function isRecalPartOrHasChildRecalPart(glassPart) { const isGlassPartRecalPart = isRecalPart(glassPart); if (!isGlassPartRecalPart && glassPart.childParts && glassPart.childParts.length > 0) { - return glassPart.childParts.filter((cp) => isRecalPartOrHasChildRecalPart(cp)); + return glassPart.childParts.some((cp) => isRecalPartOrHasChildRecalPart(cp)); } return isGlassPartRecalPart;