From e338a5d0b207528a3578737db392252f606f5cc9 Mon Sep 17 00:00:00 2001 From: NotII <46204250+NotII@users.noreply.github.com> Date: Fri, 25 Apr 2025 00:14:52 +0100 Subject: [PATCH] Update page.tsx --- app/dashboard/shipping/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/dashboard/shipping/page.tsx b/app/dashboard/shipping/page.tsx index 4a0d25e..94b2b03 100644 --- a/app/dashboard/shipping/page.tsx +++ b/app/dashboard/shipping/page.tsx @@ -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);