Update src/helpers/recal-helper.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
katiekroell 2026-03-27 11:51:40 -04:00 committed by GitHub
parent 4bff273b47
commit 744f1b4724
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,8 +64,9 @@ export function containsRecalParts(lineItems) {
const flattened = [
...(lineItems.glassParts ?? []),
...(lineItems.supportingItems ?? []),
...(lineItems.otherParts ?? []),
...(lineItems.feeItems ?? []),
...(lineItems.vaps ?? []),
...(lineItems.promos ?? []),
];
return flattened.some((li) => isRecalPartOrHasChildRecalPart(li));