Untitled

 avatar
unknown
plain_text
2 years ago
447 B
6
Indexable
      const cartSubItemsMap = new Map();
      this.cartElements.forEach((element) => {
        element.sub_items.forEach((subItem) => {
          cartSubItemsMap.set(subItem.product_id, subItem.hash);
        });
      });

      this.incompatibleServices.forEach((service) => {
        const subItemHash = cartSubItemsMap.get(service.product_id);

        if (subItemHash) {
          possibleServiceHashes.push(subItemHash);
        }
      });
Editor is loading...