@ticketboothapp/booking 1.2.149 → 1.2.150

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ticketboothapp/booking",
3
- "version": "1.2.149",
3
+ "version": "1.2.150",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "**/*.css",
@@ -199,7 +199,11 @@ export function mapQuoteLineItemsToPriceSummaryLines(
199
199
  ) {
200
200
  const category =
201
201
  type === 'TICKET'
202
- ? (label.split(/\s+/)[0]?.replace(/[^a-zA-Z]/g, '') || 'TICKET').toUpperCase()
202
+ ? label.toUpperCase().startsWith('REFUND ·')
203
+ ? label
204
+ : isPricingV2Line(item) && item.metadata?.category
205
+ ? item.metadata.category.toUpperCase()
206
+ : (label.split(/\s+/)[0]?.replace(/[^a-zA-Z]/g, '') || 'TICKET').toUpperCase()
203
207
  : type;
204
208
  out.push({
205
209
  kind: 'ticket',