feat: enhance payment flow with automatic redirection to appointment history after successful payment

This commit is contained in:
hamed
2026-07-03 10:45:35 +03:30
parent 5bec4848a2
commit 90d4a871f5
4 changed files with 25 additions and 15 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ function PaymentResultRedirect() {
const q = status ? `?status=${status}` : "";
router.replace(`/payment/${paymentUuid}${q}`);
} else {
router.replace("/dashboard?sidebar=2");
router.replace("/dashboard?sidebar=1");
}
}, [searchParams, router]);