Skip to content

Commit de0b740

Browse files
set shipping method label on shipping change for express checkout (#1285)
1 parent 78477eb commit de0b740

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.changeset/five-hornets-cheer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@godaddy/react": patch
3+
---
4+
5+
Update shipping method on change to match correct shipping provider and service for express checkout

packages/react/src/components/checkout/payment/checkout-buttons/express/godaddy.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,9 @@ export function ExpressCheckoutButton() {
10731073
},
10741074
}));
10751075

1076+
// Update shipping method name to match selection
1077+
setShippingMethod(e.shippingMethod?.label || null);
1078+
10761079
// Initialize with current value before potential async update
10771080
// Read from refs to avoid stale closures
10781081
let updatedAdjustments = calculatedAdjustmentsRef.current;

0 commit comments

Comments
 (0)