Update page.tsx

This commit is contained in:
NotII
2025-04-25 00:14:52 +01:00
parent dd4dac888f
commit e338a5d0b2

View File

@@ -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);