diff --git a/src/lib/components/checkout/OrderConfirmationItem.svelte b/src/lib/components/checkout/OrderConfirmationItem.svelte
index 2a9bb5a..67381a4 100644
--- a/src/lib/components/checkout/OrderConfirmationItem.svelte
+++ b/src/lib/components/checkout/OrderConfirmationItem.svelte
@@ -30,7 +30,7 @@
- { formatCurrency(price, currency) }
+ {formatCurrency(price, currency)}
Qty: {quantity}
@@ -45,7 +45,7 @@
- { formatCurrency(price, currency) }
+ {formatCurrency(price * quantity, currency)}
diff --git a/src/routes/checkout/success/+page.svelte b/src/routes/checkout/success/+page.svelte
index 45d89b7..b4ff15f 100644
--- a/src/routes/checkout/success/+page.svelte
+++ b/src/routes/checkout/success/+page.svelte
@@ -11,11 +11,7 @@
localBasket = value;
});
- let {
- checkoutSession,
- lineItems,
- paymentStatus
- } = data;
+ let { checkoutSession, lineItems, paymentStatus } = data;
onDestroy(unsubscribe);
@@ -76,7 +72,7 @@
{#each lineItems as item (item.id)}
@@ -89,7 +85,12 @@
{#if checkoutSession?.amount_total != null}
- Total Price: {formatCurrency(checkoutSession?.amount_total / 100, checkoutSession?.currency ?? 'gbp')}
+ Total Price:
+ {formatCurrency(
+ checkoutSession?.amount_total / 100,
+ checkoutSession?.currency ?? 'gbp'
+ )}
{/if}