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