new terms of service and refunds

This commit is contained in:
Mark Gregory
2026-10-01 08:12:19 +01:00
parent 7ad68a415b
commit a003b2e043
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -61,7 +61,7 @@
Paddle.PricePreview({items: previewItems}).then(result => {
for (const item of (result?.data?.details?.lineItems ?? [])) {
const element = priceElements.get(item?.price?.id);
const formatted = item?.formattedTotals?.subtotal ?? item?.formattedUnitTotals?.subtotal;
const formatted = item?.formattedTotals?.total ?? item?.formattedUnitTotals?.total;
if (!element || !formatted) continue;
const suffix = element.dataset.billing === 'annual' ? ' / year' : ' / month';
element.textContent = formatted + suffix;