From 5bb4619dceb814e7d2c0eb6a16e026b841f9fc13 Mon Sep 17 00:00:00 2001 From: Matthew Yates <17630073+mtyates@users.noreply.github.com> Date: Tue, 27 Oct 2026 11:48:01 -0400 Subject: [PATCH] Use Order.totalAmount instead of deprecated Order.total Co-Authored-By: Claude Opus 5.5 --- schema/thicket-api.graphql | 4 +++- src/components/CartPanel.tsx | 2 +- src/components/OrderDetail.tsx | 2 +- src/components/OrderHistory.tsx | 2 +- src/gql/graphql.ts | 20 ++++++++++---------- src/graphql/fragments/OrderSummary.graphql | 2 +- 6 files changed, 17 insertions(+), 15 deletions(-) diff --git a/schema/thicket-api.graphql b/schema/thicket-api.graphql index d118aa5..eba39ef 100644 --- a/schema/thicket-api.graphql +++ b/schema/thicket-api.graphql @@ -63,7 +63,9 @@ type Order { "Sales tax, in USD." tax: Float! "Amount charged for the order (subtotal + tax), in USD." - total: Float! + totalAmount: Float! + "Amount charged for the order (subtotal + tax), in USD." + total: Float! @deprecated(reason: "Use totalAmount.") "ISO 4217 currency code." currency: String! payment: Payment! diff --git a/src/components/CartPanel.tsx b/src/components/CartPanel.tsx index 749a563..3852cc8 100644 --- a/src/components/CartPanel.tsx +++ b/src/components/CartPanel.tsx @@ -77,7 +77,7 @@ export function CartPanel({ onViewOrder }: { onViewOrder: (id: string) => void } {confirmation && (

- Order {confirmation.order.number} placed — {formatMoney(confirmation.order.total)} + Order {confirmation.order.number} placed — {formatMoney(confirmation.order.totalAmount)}

{summarizePayment(confirmation.payment, confirmation.order.currency)}