Rollover credits to next invoice
-Products
*/}No products available
; } @@ -192,48 +197,54 @@ const ProductPriceSelector = ({ aria-expanded={open} className="w-full min-h-9 flex flex-wrap h-fit py-2 justify-start items-center gap-2 relative hover:bg-zinc-50" > - {config.apply_to_all - ? "All Products" - : config.price_ids?.length === 0 - ? "Select Products" - : config.price_ids?.map((priceId) => { - const item = products - .find((p: any) => - p.items.find((i: any) => i.price_id === priceId), - ) - ?.items.find((i: any) => i.price_id === priceId); + {config.apply_to_all ? ( + All Products + ) : config.price_ids?.length === 0 ? ( + Select products or apply to all + ) : ( + config.price_ids?.map((priceId) => { + const item = products + .find((p: any) => + p.items.find((i: any) => i.price_id === priceId), + ) + ?.items.find((i: any) => i.price_id === priceId); - const text = item - ? formatProductItemText({ - item, - org, - features, - }) - : "Unknown Price"; - return ( -{text}
- -{text}
+ +Apply to all products
@@ -253,19 +262,27 @@ const ProductPriceSelector = ({No prices available
-