Update page.tsx
This commit is contained in:
@@ -88,10 +88,12 @@ export default function ShippingPage() {
|
||||
return;
|
||||
}
|
||||
|
||||
await addShippingMethod(
|
||||
console.log("Sending request to add shipping method:", newShipping);
|
||||
const response = await addShippingMethod(
|
||||
newShipping,
|
||||
authToken
|
||||
);
|
||||
console.log("Add shipping method response:", response);
|
||||
|
||||
// Close modal and reset form before refreshing to avoid UI delays
|
||||
setModalOpen(false);
|
||||
|
||||
Reference in New Issue
Block a user